aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorMarek Vasut <[email protected]>2022-03-28 21:53:07 +0200
committerJonathan Cameron <[email protected]>2022-04-04 09:11:25 +0100
commitfd542c5eda7b494627833f81e05399587f2dceed (patch)
tree29772ea065c8faf6a2906e962e7c6e367dec136c /tools/perf/scripts/python
parent94059c522707d3d75b1b7c045143bb30b9c385af (diff)
iio: core: Print error and fail iio_device_register() in case sample bits do not fit storage bits
Add runtime check to verify whether storagebits are at least as big as shifted realbits. This should help spot broken drivers which may set realbits + shift above storagebits. Signed-off-by: Marek Vasut <[email protected]> Cc: Daniel Baluta <[email protected]> Reviewed-by: Nuno Sá <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions