iio/imu: inv_icm42600: Use max() helper macros
authorBragatheswaran Manickavel <bragathemanick0908@gmail.com>
Fri, 27 Oct 2023 09:44:10 +0000 (15:14 +0530)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 16 Nov 2023 19:10:28 +0000 (19:10 +0000)
commitc788b9e56acd46f3a07d0fad6fc3f543c3557d2c
tree81422047da3f77081a719624ea1e848ebe861148
parent3f6b9598b6df604a7c556873de18fcc97919b81c
iio/imu: inv_icm42600: Use max() helper macros

Use the standard max() helper macros instead of direct variable comparison
using if/else blocks or ternary operator. Change identified using
minmax.cocci Coccinelle semantic patch.

Signed-off-by: Bragatheswaran Manickavel <bragathemanick0908@gmail.com>
Acked-by: Jean-Baptiste Maneyrol <jean-baptiste.maneyrol@tdk.com>
Link: https://lore.kernel.org/r/20231027094410.3706-1-bragathemanick0908@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/imu/inv_icm42600/inv_icm42600_accel.c
drivers/iio/imu/inv_icm42600/inv_icm42600_buffer.c
drivers/iio/imu/inv_icm42600/inv_icm42600_gyro.c