Home
last modified time | relevance | path

Searched hist:"3 c33b7b8267f0795d74f407e97f3eeec2acb0165" (Results 1 – 2 of 2) sorted by relevance

/linux/drivers/iio/
H A Diio_core.hdiff 3c33b7b8267f0795d74f407e97f3eeec2acb0165 Sun Oct 31 09:04:21 CET 2021 Lars-Peter Clausen <lars@metafoo.de> iio: Mark iio_device_type as const

The iio_device_type struct is never modified, mark it as const. This allows
it to be placed in a read-only memory section, which will protect against
accidental or deliberate modification.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Link: https://lore.kernel.org/r/20211031080421.2086-1-lars@metafoo.de
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
H A Dindustrialio-core.cdiff 3c33b7b8267f0795d74f407e97f3eeec2acb0165 Sun Oct 31 09:04:21 CET 2021 Lars-Peter Clausen <lars@metafoo.de> iio: Mark iio_device_type as const

The iio_device_type struct is never modified, mark it as const. This allows
it to be placed in a read-only memory section, which will protect against
accidental or deliberate modification.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Link: https://lore.kernel.org/r/20211031080421.2086-1-lars@metafoo.de
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>