scpi_visa: Add missing callback parameter.

(scpi_visa_dev_inst_new): Fix serious compiler warning due to
missing drvc parameter in prototype.
This commit is contained in:
Daniel Elstner 2014-02-07 20:20:20 +01:00
parent 52f6951c4e
commit d8b6b28b80
1 changed files with 3 additions and 2 deletions

View File

@ -31,11 +31,12 @@ struct scpi_visa {
ViSession vi;
};
static int scpi_visa_dev_inst_new(void *priv, const char *resource,
char **params, const char *serialcomm)
static int scpi_visa_dev_inst_new(void *priv, struct drv_context *drvc,
const char *resource, char **params, const char *serialcomm)
{
struct scpi_visa *vscpi = priv;
(void)drvc;
(void)resource;
(void)serialcomm;