From: Alexander Beregalov <a.beregalov@gmail•com>
To: linux-next@vger•kernel.org, rmk+kernel@arm•linux.org.uk
Cc: gregkh@suse•de, Alexander Beregalov <a.beregalov@gmail•com>
Subject: [PATCH] wm97xx_batery: replace driver_data with dev_get_drvdata()
Date: Tue, 23 Jun 2009 17:50:06 +0400 [thread overview]
Message-ID: <1245765006-10863-1-git-send-email-a.beregalov@gmail.com> (raw)
See commit 53d8ba57 (Driver core: move dev_get/set_drvdata to
drivers/base/dd.c)
Fix build.
Signed-off-by: Alexander Beregalov <a.beregalov@gmail•com>
---
drivers/power/wm97xx_battery.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/power/wm97xx_battery.c b/drivers/power/wm97xx_battery.c
index 8bde921..b787335 100644
--- a/drivers/power/wm97xx_battery.c
+++ b/drivers/power/wm97xx_battery.c
@@ -33,14 +33,14 @@ static enum power_supply_property *prop;
static unsigned long wm97xx_read_bat(struct power_supply *bat_ps)
{
- return wm97xx_read_aux_adc(bat_ps->dev->parent->driver_data,
+ return wm97xx_read_aux_adc(dev_get_drvdata(bat_ps->dev->parent),
pdata->batt_aux) * pdata->batt_mult /
pdata->batt_div;
}
static unsigned long wm97xx_read_temp(struct power_supply *bat_ps)
{
- return wm97xx_read_aux_adc(bat_ps->dev->parent->driver_data,
+ return wm97xx_read_aux_adc(dev_get_drvdata(bat_ps->dev->parent),
pdata->temp_aux) * pdata->temp_mult /
pdata->temp_div;
}
--
1.6.3.1
reply other threads:[~2009-06-23 13:50 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1245765006-10863-1-git-send-email-a.beregalov@gmail.com \
--to=a.beregalov@gmail$(echo .)com \
--cc=gregkh@suse$(echo .)de \
--cc=linux-next@vger$(echo .)kernel.org \
--cc=rmk+kernel@arm$(echo .)linux.org.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox