]> git.baikalelectronics.ru Git - kernel.git/commit
mfd: stmpe: Revert "Constify static struct resource"
authorRikard Falkeborn <rikard.falkeborn@gmail.com>
Thu, 4 Mar 2021 23:07:09 +0000 (00:07 +0100)
committerLee Jones <lee.jones@linaro.org>
Wed, 14 Apr 2021 15:03:22 +0000 (16:03 +0100)
commit97079b8afc205c94634f6025901d9e2f4da81dc1
treedfcca096b676e2a12767fc7951cfdb52696d9630
parent87017384c7c370700b15e46b9147d8f759d72a6b
mfd: stmpe: Revert "Constify static struct resource"

In stmpe_devices_init(), the start and end field of these structs are
modified, so they can not be const. Add a comment to those structs that
lacked it to reduce the risk that this happens again.

This reverts commit d4a4504a84655cf4b6cf3cb47b19b0b730abc0e0.

Fixes: d4a4504a8465 ("mfd: stmpe: Constify static struct resource")
Reported-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/stmpe.c