]> asedeno.scripts.mit.edu Git - linux.git/commit
mfd: syscon: Re-use resource_size() to count max_register
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 15 Nov 2019 08:49:30 +0000 (10:49 +0200)
committerLee Jones <lee.jones@linaro.org>
Fri, 24 Jan 2020 07:33:56 +0000 (07:33 +0000)
commitf2a19c5b78670af5986ab0a625631f8f8a6adac1
treee712cb54de64b77f82b098f947be60b69efd8996
parent18490cdb9e321a62a9c2cac6fb506843cbc84926
mfd: syscon: Re-use resource_size() to count max_register

Instead of open coded variant use resource_size() and replace
weird '- 3' to more understandable '- 4'.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/syscon.c