]> git.baikalelectronics.ru Git - kernel.git/commit
mfd: wm831x: Fix broken wm831x_unique_id_show
authorRasmus Villemoes <linux@rasmusvillemoes.dk>
Sat, 5 Dec 2015 23:39:39 +0000 (00:39 +0100)
committerLee Jones <lee.jones@linaro.org>
Mon, 11 Jan 2016 06:23:21 +0000 (06:23 +0000)
commitbc1eee564347ac929735c5a2ca802f6065b7677b
tree360c9a85f2d85f8a60faf9c937f141689ce5e249
parentcf3583574778d9651c9f6065966f26306105970a
mfd: wm831x: Fix broken wm831x_unique_id_show

wm831x_unique_id_show currently displays an interesting pattern of '0'
and '3' characters which isn't very useful (figuring out why is left
as an exercise for the reader). Presumably "buf[i]" should have been
"id[i] & 0xff".

But while there, it is much simpler to simply use %phN and do all the
formatting at once.

Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/wm831x-otp.c