aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb-frontends/m88ds3103_priv.h
diff options
context:
space:
mode:
authorAntti Palosaari <crope@iki.fi>2015-04-16 22:43:52 -0300
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2015-06-10 11:08:50 -0300
commit478932b16052f5ded74685d096ae920cd17d6424 (patch)
treea6714a4e5615aa1d05dfaf642eeb5c96d311a3ac /drivers/media/dvb-frontends/m88ds3103_priv.h
parent[media] m88ds3103: rename variables and correct logging (diff)
downloadlinux-dev-478932b16052f5ded74685d096ae920cd17d6424.tar.xz
linux-dev-478932b16052f5ded74685d096ae920cd17d6424.zip
[media] m88ds3103: use regmap for I2C register access
Use regmap for I2C register access. Remove own I2C repeated mutex as it should not be needed. I2C adapter lock is already taken when I2C mux adapter is called, no need for double locking. Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/dvb-frontends/m88ds3103_priv.h')
-rw-r--r--drivers/media/dvb-frontends/m88ds3103_priv.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/media/dvb-frontends/m88ds3103_priv.h b/drivers/media/dvb-frontends/m88ds3103_priv.h
index 35c7f3eced26..eee8c22c51ec 100644
--- a/drivers/media/dvb-frontends/m88ds3103_priv.h
+++ b/drivers/media/dvb-frontends/m88ds3103_priv.h
@@ -22,6 +22,7 @@
#include "dvb_math.h"
#include <linux/firmware.h>
#include <linux/i2c-mux.h>
+#include <linux/regmap.h>
#include <linux/math64.h>
#define M88DS3103_FIRMWARE "dvb-demod-m88ds3103.fw"
@@ -32,8 +33,8 @@
struct m88ds3103_dev {
struct i2c_client *client;
- /* mutex needed due to own tuner I2C adapter */
- struct mutex i2c_mutex;
+ struct regmap_config regmap_config;
+ struct regmap *regmap;
struct m88ds3103_config config;
const struct m88ds3103_config *cfg;
struct dvb_frontend fe;