File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1438,15 +1438,15 @@ static int cy8c95x0_probe(struct i2c_client *client)
1438
1438
switch (chip -> tpin ) {
1439
1439
case 20 :
1440
1440
strscpy (chip -> name , cy8c95x0_id [0 ].name );
1441
- regmap_range_conf .range_max = CY8C95X0_VIRTUAL + 3 * MUXED_STRIDE ;
1441
+ regmap_range_conf .range_max = CY8C95X0_VIRTUAL + 3 * MUXED_STRIDE - 1 ;
1442
1442
break ;
1443
1443
case 40 :
1444
1444
strscpy (chip -> name , cy8c95x0_id [1 ].name );
1445
- regmap_range_conf .range_max = CY8C95X0_VIRTUAL + 6 * MUXED_STRIDE ;
1445
+ regmap_range_conf .range_max = CY8C95X0_VIRTUAL + 6 * MUXED_STRIDE - 1 ;
1446
1446
break ;
1447
1447
case 60 :
1448
1448
strscpy (chip -> name , cy8c95x0_id [2 ].name );
1449
- regmap_range_conf .range_max = CY8C95X0_VIRTUAL + 8 * MUXED_STRIDE ;
1449
+ regmap_range_conf .range_max = CY8C95X0_VIRTUAL + 8 * MUXED_STRIDE - 1 ;
1450
1450
break ;
1451
1451
default :
1452
1452
return - ENODEV ;
You can’t perform that action at this time.
0 commit comments