Commit a375510e authored by Johan Hovold's avatar Johan Hovold Committed by Alexandre Belloni

rtc: pm8xxx: rename struct device pointer

Rename the driver-data struct device pointer by dropping the "rtc"
prefix which is both redundant and misleading (as this is a pointer to
the platform device and not the rtc class device).
Signed-off-by: default avatarJohan Hovold <johan+linaro@kernel.org>
Reviewed-by: default avatarDavid Collins <quic_collinsd@quicinc.com>
Link: https://lore.kernel.org/r/20230202155448.6715-10-johan+linaro@kernel.orgSigned-off-by: default avatarAlexandre Belloni <alexandre.belloni@bootlin.com>
parent c996956f
...@@ -48,7 +48,7 @@ struct pm8xxx_rtc_regs { ...@@ -48,7 +48,7 @@ struct pm8xxx_rtc_regs {
* @allow_set_time: indicates whether writing to the RTC is allowed * @allow_set_time: indicates whether writing to the RTC is allowed
* @rtc_alarm_irq: rtc alarm irq number. * @rtc_alarm_irq: rtc alarm irq number.
* @regs: rtc registers description. * @regs: rtc registers description.
* @rtc_dev: device structure. * @dev: device structure
*/ */
struct pm8xxx_rtc { struct pm8xxx_rtc {
struct rtc_device *rtc; struct rtc_device *rtc;
...@@ -56,7 +56,7 @@ struct pm8xxx_rtc { ...@@ -56,7 +56,7 @@ struct pm8xxx_rtc {
bool allow_set_time; bool allow_set_time;
int rtc_alarm_irq; int rtc_alarm_irq;
const struct pm8xxx_rtc_regs *regs; const struct pm8xxx_rtc_regs *regs;
struct device *rtc_dev; struct device *dev;
}; };
/* /*
...@@ -372,7 +372,7 @@ static int pm8xxx_rtc_probe(struct platform_device *pdev) ...@@ -372,7 +372,7 @@ static int pm8xxx_rtc_probe(struct platform_device *pdev)
"allow-set-time"); "allow-set-time");
rtc_dd->regs = match->data; rtc_dd->regs = match->data;
rtc_dd->rtc_dev = &pdev->dev; rtc_dd->dev = &pdev->dev;
rc = pm8xxx_rtc_enable(rtc_dd); rc = pm8xxx_rtc_enable(rtc_dd);
if (rc) if (rc)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment