Use resource_size rather than a verbose computation on
the end and start fields.

Signed-off-by: Zheng Yongjun <zhengyongj...@huawei.com>
---
 drivers/media/dvb-frontends/m88ds3103.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/media/dvb-frontends/m88ds3103.c 
b/drivers/media/dvb-frontends/m88ds3103.c
index bde0ea64a89b..cfa4cdde99d8 100644
--- a/drivers/media/dvb-frontends/m88ds3103.c
+++ b/drivers/media/dvb-frontends/m88ds3103.c
@@ -1793,8 +1793,8 @@ static int m88ds3103_probe(struct i2c_client *client,
        dev->config.lnb_en_pol = pdata->lnb_en_pol;
        dev->cfg = &dev->config;
        /* create regmap */
-       dev->regmap_config.reg_bits = 8,
-       dev->regmap_config.val_bits = 8,
+       dev->regmap_config.reg_bits = 8;
+       dev->regmap_config.val_bits = 8;
        dev->regmap_config.lock_arg = dev;
        dev->regmap = devm_regmap_init_i2c(client, &dev->regmap_config);
        if (IS_ERR(dev->regmap)) {
-- 
2.22.0

Reply via email to