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

[media] rtl2832: convert to regmap API

Use regmap to cover register access routines.
Signed-off-by: default avatarAntti Palosaari <crope@iki.fi>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent de0a5f11
...@@ -452,6 +452,7 @@ config DVB_RTL2830 ...@@ -452,6 +452,7 @@ config DVB_RTL2830
config DVB_RTL2832 config DVB_RTL2832
tristate "Realtek RTL2832 DVB-T" tristate "Realtek RTL2832 DVB-T"
depends on DVB_CORE && I2C && I2C_MUX depends on DVB_CORE && I2C && I2C_MUX
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,18 +24,18 @@ ...@@ -24,18 +24,18 @@
#include "dvb_frontend.h" #include "dvb_frontend.h"
#include "rtl2832.h" #include "rtl2832.h"
#include <linux/i2c-mux.h> #include <linux/i2c-mux.h>
#include <linux/regmap.h>
struct rtl2832_dev { struct rtl2832_dev {
struct rtl2832_platform_data *pdata; struct rtl2832_platform_data *pdata;
struct i2c_client *client; struct i2c_client *client;
struct regmap *regmap;
struct i2c_adapter *i2c_adapter; struct i2c_adapter *i2c_adapter;
struct i2c_adapter *i2c_adapter_tuner; struct i2c_adapter *i2c_adapter_tuner;
struct dvb_frontend fe; struct dvb_frontend fe;
bool i2c_gate_state; bool i2c_gate_state;
bool sleeping; bool sleeping;
u8 page; /* active register page */
struct delayed_work i2c_gate_work; struct delayed_work i2c_gate_work;
}; };
......
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