Commit 54ab48ed authored by Antti Palosaari's avatar Antti Palosaari Committed by Mauro Carvalho Chehab

[media] tda10071: convert to regmap I2C API

Use regmap API for I2C operations.
Signed-off-by: default avatarAntti Palosaari <crope@iki.fi>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent fca3e007
...@@ -264,6 +264,7 @@ config DVB_MB86A16 ...@@ -264,6 +264,7 @@ config DVB_MB86A16
config DVB_TDA10071 config DVB_TDA10071
tristate "NXP TDA10071" tristate "NXP TDA10071"
depends on DVB_CORE && I2C depends on DVB_CORE && I2C
select REGMAP
default m if !MEDIA_SUBDRV_AUTOSELECT default m if !MEDIA_SUBDRV_AUTOSELECT
help help
Say Y when you want to support this frontend. Say Y when you want to support this frontend.
......
This diff is collapsed.
...@@ -24,10 +24,12 @@ ...@@ -24,10 +24,12 @@
#include "dvb_frontend.h" #include "dvb_frontend.h"
#include "tda10071.h" #include "tda10071.h"
#include <linux/firmware.h> #include <linux/firmware.h>
#include <linux/regmap.h>
struct tda10071_dev { struct tda10071_dev {
struct dvb_frontend fe; struct dvb_frontend fe;
struct i2c_client *client; struct i2c_client *client;
struct regmap *regmap;
u32 clk; u32 clk;
u16 i2c_wr_max; u16 i2c_wr_max;
u8 ts_mode; u8 ts_mode;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment