diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2017-08-01 15:38:02 -0700 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2017-08-02 10:51:46 +0200 |
commit | 0922386538f9da8f242b1d52b5538bf9b8ddded5 (patch) | |
tree | 64f2b42e97af73064833bdf16741af75a7211902 /scripts | |
parent | 581c4484769e692eade761c17c22549aaefe6749 (diff) | |
download | linux-0922386538f9da8f242b1d52b5538bf9b8ddded5.tar.bz2 |
HID: input: optionally use device id in battery name
Manufacturers do not always populate serial number in their devices, so
let's fall back to device ID when forming the battery device name. As a
result, batteries in devices without serial number will be named like
this:
hid-0018:2D1F:510E.0001-battery
(as opposed to hid--battery for the first one, and failing to create
batteries for the subsequent ones).
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions