summaryrefslogtreecommitdiff
path: root/mm/page_alloc.c
diff options
context:
space:
mode:
authorBrian Masney <masneyb@onstation.org>2018-03-03 20:49:34 -0500
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2018-03-10 14:38:58 +0000
commitf5d9bca666078871f27eef6b18e507498840eb70 (patch)
tree89dc9a6e20b45bf565c620aa4da36892a5cb6a89 /mm/page_alloc.c
parent107eb59bc15ccd999b8cd297172691673396ec8f (diff)
staging: iio: tsl2x7x: add common function for writing to the control register
There were four places where the same chunk of code was used to write to the control register. This patch creates a common function tsl2x7x_write_control_reg() to reduce duplicate code. The function tsl2x7x_chip_off() did not correctly return an error code so this patch also corrects that issue. Signed-off-by: Brian Masney <masneyb@onstation.org> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'mm/page_alloc.c')
0 files changed, 0 insertions, 0 deletions