misc: ds1682: Show device registers as unsigned
authorAaron Sierra <asierra@xes-inc.com>
Fri, 22 Dec 2017 16:51:09 +0000 (10:51 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 9 Jan 2018 16:03:57 +0000 (17:03 +0100)
commit2fa065fde217a39987f8931cb800e511fa5178e4
tree071795770e41450cbe21ad8ff5f54b3d1bea7d1a
parent1a3771d5fa9417d5a79dd25b1c3c387f7dac7179
misc: ds1682: Show device registers as unsigned

This patch leverages the fact that all DS1682 registers are unsigned to
merge two return paths into one. It also introduces val_le as used in
ds1682_store() to merge two endianness conversions into one.

Signed-off-by: Aaron Sierra <asierra@xes-inc.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/ds1682.c