diff options
| author | H Hartley Sweeten <hsweeten@visionengravers.com> | 2016-03-24 01:36:42 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-03-28 17:30:36 +0300 |
| commit | f4e0331f3050f051ad0e8818635fc157cf354713 (patch) | |
| tree | 847acf33675fa4c3bb2acae24c1a29b8fc5c97e4 /tools/perf/scripts/python/sched-migration.py | |
| parent | 85bfafa81f8e422503d31d48ae2658675aad1929 (diff) | |
| download | linux-f4e0331f3050f051ad0e8818635fc157cf354713.tar.xz | |
staging: comedi: ni_tio: export and fix ni_tio_set_bits()
Move the inline function from the header and export it instead.
Fix the checkpatch.pl issue:
WARNING: Prefer 'unsigned int' to bare use of 'unsigned'
The 'unsigned' vars can safely be changed to 'unsigned int'.
This allows moving ni_tio_set_bits_transient() into the driver and
making it static.
Fix the checkpatch.pl issue:
CHECK: Avoid crashing the kernel - try using WARN_ON & recovery code
rather than BUG() or BUG_ON()
The BUG_ON() is overkill. All the drivers that call this function pass
'register_index' values that are valid. Just check the 'register_index'
before updating the software copy and writing the register.
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions
