diff options
author | Julia Lawall <Julia.Lawall@lip6.fr> | 2018-01-02 16:28:03 +0300 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2018-01-18 02:10:30 +0300 |
commit | d032a2eb2e3b9fc2def41c22bfb58e1efc2c6823 (patch) | |
tree | 3bfb564577a2d7206f3ddb20afbd60a4fbbd7746 /include/linux/fpga/fpga-mgr.h | |
parent | f89813ec8ba4b46c7926325eb9835ef1c6793496 (diff) | |
download | linux-d032a2eb2e3b9fc2def41c22bfb58e1efc2c6823.tar.xz |
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 <Julia.Lawall@lip6.fr>
Reviewed-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'include/linux/fpga/fpga-mgr.h')
0 files changed, 0 insertions, 0 deletions