2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-23 20:53:53 +08:00
linux-next/drivers/staging/iio
Tapasweni Pathak ffceca8c17 staging: iio: adc: use DIV_ROUND_UP
The kernel.h macro DIV_ROUND_UP performs the computation (((n) + (d) - 1) /
(d)) but is perhaps more readable.

Coccinelle script used :

// <smpl>
@haskernel@
@@
@depends on haskernel@
expression n,d;
@@
(
- (n + d - 1) / d
+ DIV_ROUND_UP(n,d)
|
- (n + (d - 1)) / d
+ DIV_ROUND_UP(n,d)
)
@depends on haskernel@
expression n,d;
@@
- DIV_ROUND_UP((n),d)
+ DIV_ROUND_UP(n,d)
@depends on haskernel@
expression n,d;
@@
- DIV_ROUND_UP(n,(d))
+ DIV_ROUND_UP(n,d)
// </smpl>

Signed-off-by: Tapasweni Pathak <tapaswenipathak@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-10-20 10:29:19 +08:00
..
accel staging: iio: accel: Update Kconfig description with module name information 2014-10-20 10:29:08 +08:00
adc staging: iio: adc: use DIV_ROUND_UP 2014-10-20 10:29:19 +08:00
addac staging: iio: addac: annotate Kconfig entries with module name information 2014-10-20 10:29:08 +08:00
cdc staging: iio: cdc: Don't put an else right after a return 2014-09-19 17:49:39 -07:00
Documentation Staging: iio: Documentation: Added check for sscanf return value. 2014-10-20 10:29:08 +08:00
frequency staging: iio: frequency: remove unnecessary semicolon 2014-09-28 22:19:04 -04:00
gyro Staging: iio: gyro: Added description for config symbol. 2014-10-20 10:29:08 +08:00
impedance-analyzer staging: iio: impedance-analyzer: add blank line after declaration 2014-09-19 16:25:09 -07:00
light staging: iio: light: Remove unnecessary line continuations 2014-10-20 10:29:07 +08:00
magnetometer staging: iio: hmc5843_core: fix sparse warnings 2014-08-02 17:33:09 +01:00
meter Staging: iio: meter: Kconfig: Add module name information in Kconfig 2014-10-20 10:29:08 +08:00
resolver staging: iio: resolver: Annotate Kconfig entries with module name information 2014-10-02 10:06:10 -07:00
trigger Staging: iio: trigger: Break line over 80 characters 2014-10-20 10:29:09 +08:00
iio_dummy_evgen.c staging: iio: dummy: add blank lines after declarations. 2014-09-19 16:24:19 -07:00
iio_dummy_evgen.h staging: iio: Add #include guards to header files 2014-09-28 22:19:04 -04:00
iio_simple_dummy_buffer.c staging: iio: dummy: add blank lines after declarations. 2014-09-19 16:24:19 -07:00
iio_simple_dummy_events.c staging: iio: dummy: add blank lines after declarations. 2014-09-19 16:24:19 -07:00
iio_simple_dummy.c staging: iio: fix coding style by adding blank lines in iio_simple_dummy 2014-06-14 16:19:10 +01:00
iio_simple_dummy.h staging: iio: Add #include guards to header files 2014-09-28 22:19:04 -04:00
Kconfig staging/iio: IIO_SIMPLE_DUMMY_BUFFER neds IIO_BUFFER 2014-06-07 11:45:21 +01:00
Makefile hwmon: Move the IIO client driver for hwmon out of staging 2013-03-23 10:08:15 +00:00
ring_hw.h staging: iio: Add #include guards to header files 2014-09-28 22:19:04 -04:00
TODO Staging/iio: add TODO reminder 2013-10-01 16:19:17 +01:00