OSDN Git Service

rtc: rx8010: simplify getting the adapter of a client
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Sat, 8 Jun 2019 10:56:08 +0000 (12:56 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Sun, 9 Jun 2019 14:48:08 +0000 (16:48 +0200)
commit9d085c54202dec9abcf401eb77013ea8603f5188
treea0021e780acb22a00493fb9564a9a5834c88bf4f
parent5cb172694a010c9ec786f6ecc2290369f7271108
rtc: rx8010: simplify getting the adapter of a client

We have a dedicated pointer for that, so use it. Much easier to read and
less computation involved.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-rx8010.c