Andy Shevchenko 6dac44c602 mfd: intel_quark_i2c_gpio: Don't play dirty trick with const
As Linus rightfully noticed, the driver plays dirty trick with const,
i.e. it assigns a place holder data structure to the const field
in the MFD cell and then drops the const by explicit casting. This is
not how it should be.

Assign local pointers of the cell and resource to the respective
non-const place holders in the intel_quark_i2c_setup() and
intel_quark_gpio_setup().

Reported-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
2021-04-14 16:06:35 +01:00
..
2019-08-14 09:07:20 +01:00
2020-11-19 08:34:21 +00:00
2020-09-30 16:25:29 +01:00
2019-07-02 12:11:31 +01:00
2019-07-15 20:18:40 -07:00
2021-04-14 16:03:27 +01:00
2020-11-19 08:34:21 +00:00
2021-03-10 10:58:33 +00:00
2020-09-30 16:25:19 +01:00
2019-07-09 08:59:39 -07:00