Re: [PATCH 3/4] Convert WM97xx driver to use platform_data

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Marek Vasut <marek.vasut@xxxxxxxxx> writes:
> Dne St 22. července 2009 13:01:03 Marek Vasut napsal(a):>> Ok,>> Im sending the set again.>> This one should be acked by Anton already.>> From 54febe82847aeef3fcc02a074fd9d21def97f174 Mon Sep 17 00:00:00 2001> From: Marek Vasut <marek.vasut@xxxxxxxxx>> Date: Tue, 21 Jul 2009 18:52:28 +0200> Subject: [PATCH 3/4] Convert WM97xx driver to use platform_data>> This patch converts the wm97xx driver to use platform_data supplied by> ac97 bus. Also, this fixes the related wm97xx-battery driver to use> it's platform_data and prepares a structure for touchscreen driver.>> Signed-off-by: Marek Vasut <marek.vasut@xxxxxxxxx>
> @@ -97,6 +105,7 @@ static void wm97xx_bat_external_power_changed(struct power_supply *bat_ps)>  static void wm97xx_bat_update(struct power_supply *bat_ps)>  {>  	int old_status = bat_status;> +	struct wm97xx_batt_pdata *pdata = dev_get_drvdata(bat_ps->dev->parent);Are you sure of this line ?Because when I add this line next to it :	printk(KERN_INFO "RJK: charge_gpio = %d\n", pdata->charge_gpio);I get :[  160.079239] power_supply mioa701_battery: prop VOLTAGE_NOW=4012[  160.089767] power_supply mioa701_battery: prop VOLTAGE_MAX=4032[  160.099772] power_supply mioa701_battery: prop VOLTAGE_MIN=3072[  160.111776] RJK: charge_gpio = 260440062
Needless to say that my kernel doesn't boot in that case (because of thefollowing gpio_get_value()). I was expecting to have "-1" in my printk.
Cheers.
--Robert_______________________________________________Alsa-devel mailing listAlsa-devel@xxxxxxxxxxxxxxxxxxxx://mailman.alsa-project.org/mailman/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux