diff options
author | Antti Palosaari <crope@iki.fi> | 2015-04-21 22:13:39 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-05-20 18:48:31 +0200 |
commit | f8b9b871f832a618f71be17fe7d90034e0862862 (patch) | |
tree | 38ece3926ed6283b8b3cee0c44170de5469e82e5 /drivers/media/tuners/e4000_priv.h | |
parent | [media] e4000: revise synthesizer calculation (diff) | |
download | linux-f8b9b871f832a618f71be17fe7d90034e0862862.tar.xz linux-f8b9b871f832a618f71be17fe7d90034e0862862.zip |
[media] e4000: various small changes
* Rename device state from 's' to 'dev'.
* Move single include to driver private header.
* Change error handling type of each function to one I tend use
nowadays.
* Remove dummy register write from init. Even Windows driver does this
multiple times remove it as I have never seen any I2C errors.
* Define I2C client pointer for each function and use it.
* Do not clean tuner ops during driver remove - not needed.
* Disable sysfs device bind / unbind. We are not allowed manually
bind / unbind device from the driver currently.
* Rename some other variables.
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/tuners/e4000_priv.h')
-rw-r--r-- | drivers/media/tuners/e4000_priv.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/media/tuners/e4000_priv.h b/drivers/media/tuners/e4000_priv.h index 6214fc05bf70..8e991df9509e 100644 --- a/drivers/media/tuners/e4000_priv.h +++ b/drivers/media/tuners/e4000_priv.h @@ -22,14 +22,15 @@ #define E4000_PRIV_H #include "e4000.h" +#include <linux/math64.h> #include <media/v4l2-ctrls.h> #include <media/v4l2-subdev.h> #include <linux/regmap.h> -struct e4000 { +struct e4000_dev { struct i2c_client *client; struct regmap *regmap; - u32 clock; + u32 clk; struct dvb_frontend *fe; struct v4l2_subdev sd; bool active; |