diff options
author | Antti Palosaari <crope@iki.fi> | 2014-12-15 07:17:25 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-02-03 21:12:07 +0300 |
commit | eec21beb35a0d45a555ab6ac0a99257a2e7e726a (patch) | |
tree | be23c782b016cf8b90ca310f9276872da8dd8263 /drivers/media/dvb-frontends/rtl2832_priv.h | |
parent | 5e5d52a00fe8b114551a05379ac446497738df7d (diff) | |
download | linux-eec21beb35a0d45a555ab6ac0a99257a2e7e726a.tar.xz |
[media] rtl2832: merge reg page as a part of reg address
Chips uses 8-bit register addresses with 5 pages. Extend register
address by using register page as a first byte of address, defining
virtual register addresses. That is common method of handling
register pages and regmap also uses it. Remove page + address
conversion glue which was there for regmap.
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/rtl2832_priv.h')
-rw-r--r-- | drivers/media/dvb-frontends/rtl2832_priv.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/media/dvb-frontends/rtl2832_priv.h b/drivers/media/dvb-frontends/rtl2832_priv.h index 216e905763d4..973892afb916 100644 --- a/drivers/media/dvb-frontends/rtl2832_priv.h +++ b/drivers/media/dvb-frontends/rtl2832_priv.h @@ -45,8 +45,7 @@ struct rtl2832_dev { }; struct rtl2832_reg_entry { - u8 page; - u8 start_address; + u16 start_address; u8 msb; u8 lsb; }; |