OSDN Git Service

rtc: sysfs: make name uniform
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>
Fri, 2 Jun 2017 11:57:03 +0000 (13:57 +0200)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Sat, 3 Jun 2017 08:52:04 +0000 (10:52 +0200)
commit77a73f3caece06d1d17268f43ec39c5779e6ce24
tree692440664a8691ced1dfc821cbb58a8aea950380
parenta21512c1698d8106bcece0d24ff590dc92682678
rtc: sysfs: make name uniform

The name sysfs attribute is not useful in its current form because of all
the drivers:
 - 3 are using the feature correctly
 - 2 are clearly misusing it
 - 60 are using driver.name, either directly or indirectly
 - 46 are using pdev->name
 - 8 are using client->name
 - 31 are using a variation of driver.name (addition or removal of rtc-,
   -rtc, _rtc, rtc_)

Make it uniform and use the driver name and the device name.

Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
drivers/rtc/rtc-sysfs.c