diff options
| author | Julia Lawall <[email protected]> | 2018-01-02 13:28:03 +0000 |
|---|---|---|
| committer | Wolfram Sang <[email protected]> | 2018-01-17 23:10:30 +0000 |
| commit | d032a2eb2e3b9fc2def41c22bfb58e1efc2c6823 (patch) | |
| tree | 3bfb564577a2d7206f3ddb20afbd60a4fbbd7746 /tools/perf/scripts/python | |
| parent | i2c: acorn: remove outdated path from file header (diff) | |
| download | kernel-d032a2eb2e3b9fc2def41c22bfb58e1efc2c6823.tar.gz kernel-d032a2eb2e3b9fc2def41c22bfb58e1efc2c6823.zip | |
i2c: rk3x: account for const type of of_device_id.data
This driver creates a number of const structures that it stores in
the data field of an of_device_id array.
The data field of an of_device_id structure has type const void *, so
there is no need for a const-discarding cast when putting const values
into such a structure.
Furthermore, adding const to the declaration of the location that
receives a const value from such a field ensures that the compiler
will continue to check that the value is not modified. The
const-discarding cast on the extraction from the data field is thus
no longer needed.
Done using Coccinelle.
Signed-off-by: Julia Lawall <[email protected]>
Reviewed-by: Heiko Stuebner <[email protected]>
Signed-off-by: Wolfram Sang <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
