diff options
author | Sakari Ailus <sakari.ailus@maxwell.research.nokia.com> | 2012-04-22 08:55:10 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-05-20 12:45:01 -0300 |
commit | 1e73eea781bc302ba7f35da89d627bd355a7814a (patch) | |
tree | 8a618353b8530b6cf4a97c35c1a06fd85bd3a38d /drivers/media/video/smiapp/smiapp-regs.h | |
parent | 2547428de05d5bc45d3144a0ebc51e3f249a2bc0 (diff) | |
download | lwn-1e73eea781bc302ba7f35da89d627bd355a7814a.tar.gz lwn-1e73eea781bc302ba7f35da89d627bd355a7814a.zip |
[media] smiapp: Pass struct sensor to register writing commands instead of i2c_client
Pass struct sensor to register access commands. This allows taking quirks
into account in register access.
Signed-off-by: Sakari Ailus <sakari.ailus@maxwell.research.nokia.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/smiapp/smiapp-regs.h')
-rw-r--r-- | drivers/media/video/smiapp/smiapp-regs.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/media/video/smiapp/smiapp-regs.h b/drivers/media/video/smiapp/smiapp-regs.h index 58e8009d4aa5..1edfd206fb76 100644 --- a/drivers/media/video/smiapp/smiapp-regs.h +++ b/drivers/media/video/smiapp/smiapp-regs.h @@ -40,7 +40,9 @@ struct smia_reg { u32 val; /* 8/16/32-bit value */ }; -int smiapp_read(struct i2c_client *client, u32 reg, u32 *val); -int smiapp_write(struct i2c_client *client, u32 reg, u32 val); +struct smiapp_sensor; + +int smiapp_read(struct smiapp_sensor *sensor, u32 reg, u32 *val); +int smiapp_write(struct smiapp_sensor *sensor, u32 reg, u32 val); #endif |