iio: adc: xadc: Fix coding style violations
authorSai Krishna Potthuri <lakshmi.sai.krishna.potthuri@xilinx.com>
Thu, 10 Aug 2017 06:30:20 +0000 (08:30 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 12 Aug 2017 12:10:30 +0000 (13:10 +0100)
commitce0d376140838b080b8625892203704d6f10784b
tree16d0b5b96721392767999de4e4188e71a316c5e2
parentb24d10976e3c0a1217c956b45dfc6d6aa914ec8a
iio: adc: xadc: Fix coding style violations

This patch fix following checkpatch warnings in xadc driver
1. prefer 'unsigned int' to bare use of 'unsigned'.
2. else is not generally useful after a break or return.
3. fill all function definition arguments with identifier name

Signed-off-by: Sai Krishna Potthuri <lakshmis@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/xilinx-xadc-events.c
drivers/iio/adc/xilinx-xadc.h