]> asedeno.scripts.mit.edu Git - linux.git/commit
pinctrl: intel: Simplify offset validation in intel_get_padcfg()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 23 Jul 2019 15:55:14 +0000 (18:55 +0300)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 7 Aug 2019 13:44:55 +0000 (16:44 +0300)
commit7eb7ecddd3bdb9fd616bc62348ed3aaccaa9ef83
treee5fb8058121aa11a7541ed8b19c42772cb3c05ee
parentcfc1c34585492179e9e74a0b64d1be285646be67
pinctrl: intel: Simplify offset validation in intel_get_padcfg()

There is more generic and simpler validation just against the nregs.
Using it allows to drop customization from the intel_get_padcfg().

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
drivers/pinctrl/intel/pinctrl-intel.c