diff options
author | Antti Palosaari <crope@iki.fi> | 2015-04-15 13:51:29 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-05-18 15:50:33 -0300 |
commit | 35fe4c65334bc88321450a8418ce37b69e2e09cb (patch) | |
tree | 73f10a0dafb74bb7c6c4e959effdece5a1aa0b1a /drivers/media/tuners/fc2580_priv.h | |
parent | 154cdfb03df77dc09ab07243dc531ad0ff1cc044 (diff) | |
download | lwn-35fe4c65334bc88321450a8418ce37b69e2e09cb.tar.gz lwn-35fe4c65334bc88321450a8418ce37b69e2e09cb.zip |
[media] fc2580: use regmap for register I2C access
Replace home made register access routines with regmap.
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/tuners/fc2580_priv.h')
-rw-r--r-- | drivers/media/tuners/fc2580_priv.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/tuners/fc2580_priv.h b/drivers/media/tuners/fc2580_priv.h index 16245ee878b1..60f8f6caca11 100644 --- a/drivers/media/tuners/fc2580_priv.h +++ b/drivers/media/tuners/fc2580_priv.h @@ -22,6 +22,7 @@ #define FC2580_PRIV_H #include "fc2580.h" +#include <linux/regmap.h> #include <linux/math64.h> struct fc2580_reg_val { @@ -130,8 +131,7 @@ static const struct fc2580_freq_regs fc2580_freq_regs_lut[] = { struct fc2580_dev { u32 clk; struct i2c_client *client; - struct i2c_adapter *i2c; - u8 i2c_addr; + struct regmap *regmap; }; #endif |