aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2021-03-26 14:48:42 +0200
committerLee Jones <lee.jones@linaro.org>2021-04-14 16:06:35 +0100
commit6dac44c602bef283484ca84591396e65f8d8f1a5 (patch)
treec4583da616a538864434e66bbf1780ef11e94575 /drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
parent91076ebb3e2204cbb81aa2d6930f2a88638e4bb0 (diff)
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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c')
0 files changed, 0 insertions, 0 deletions