Input: synaptics-rmi4 - use %phN to form F34 configuration ID
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 30 May 2017 03:22:34 +0000 (20:22 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 2 Jun 2017 05:11:23 +0000 (22:11 -0700)
commit49bbbfa8d27a227521a9e07cb1612f60e8f0e8ff
tree4e765f94333348f6471153a12730c8edd2d4e898
parent32a62b9441d840e676d55b45468371c252a4fa01
Input: synaptics-rmi4 - use %phN to form F34 configuration ID

Instead of printing bytes one by one, let's use %phN to print the buffer in
one go.

Also use hweight8 to count number of partitions instead of inspecting it
bit by bit.

Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Tested-by: Nick Dyer <nick@shmanahar.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/rmi4/rmi_f34v7.c