diff options
Diffstat (limited to 'drivers/mfd/max77686.c')
-rw-r--r-- | drivers/mfd/max77686.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/max77686.c b/drivers/mfd/max77686.c index 86e552348db4..929795eae9fc 100644 --- a/drivers/mfd/max77686.c +++ b/drivers/mfd/max77686.c | |||
@@ -52,7 +52,7 @@ static const struct mfd_cell max77802_devs[] = { | |||
52 | static bool max77802_pmic_is_accessible_reg(struct device *dev, | 52 | static bool max77802_pmic_is_accessible_reg(struct device *dev, |
53 | unsigned int reg) | 53 | unsigned int reg) |
54 | { | 54 | { |
55 | return (reg >= MAX77802_REG_DEVICE_ID && reg < MAX77802_REG_PMIC_END); | 55 | return reg < MAX77802_REG_PMIC_END; |
56 | } | 56 | } |
57 | 57 | ||
58 | static bool max77802_rtc_is_accessible_reg(struct device *dev, | 58 | static bool max77802_rtc_is_accessible_reg(struct device *dev, |