aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts
diff options
context:
space:
mode:
authorAndy Shevchenko <[email protected]>2021-03-26 14:48:42 +0200
committerLee Jones <[email protected]>2021-04-14 16:06:35 +0100
commit6dac44c602bef283484ca84591396e65f8d8f1a5 (patch)
treec4583da616a538864434e66bbf1780ef11e94575 /tools/perf/scripts
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 <[email protected]> Signed-off-by: Andy Shevchenko <[email protected]> Signed-off-by: Lee Jones <[email protected]>
Diffstat (limited to 'tools/perf/scripts')
0 files changed, 0 insertions, 0 deletions