From d1184dc21448404d2e274ce5a5a95b98878a624f Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Mon, 19 Jan 2009 01:18:06 +0000 Subject: clean up GTA02 WLAN power control This patch cleans up the GTA02 WLAN power control platform device: - remove misleading /sys/devices/platform/gta02-pm-wlan.0/power_on Users really wishing to play with reset can just gpio j12=0 - rename gta02_wlan_power to gta02_wlan_reset, because that's what it truly is - remove handling of GTA02_CHIP_PWD because - it's not used, say our schematics - even if it is, it's sampled long before we could affect it - move SDIO-specific conversion from "power switch" to "reset button" logic from gta02_wlan_reset to gta02_s3c_mmc_set_power - removed mutex protection because we now only have a single user A note in passing: we can probably do away with gta02_pm_wlan completely once upstream rfkill adds better support for type-based control. Signed-off-by: Werner Almesberger --- arch/arm/mach-s3c2410/include/mach/gta02-pm-wlan.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'arch/arm/mach-s3c2410') diff --git a/arch/arm/mach-s3c2410/include/mach/gta02-pm-wlan.h b/arch/arm/mach-s3c2410/include/mach/gta02-pm-wlan.h index 5a224fe036b..48369789709 100644 --- a/arch/arm/mach-s3c2410/include/mach/gta02-pm-wlan.h +++ b/arch/arm/mach-s3c2410/include/mach/gta02-pm-wlan.h @@ -1,7 +1,7 @@ #ifndef __MACH_GTA02_PM_WLAN_H #define __MACH_GTA02_PM_WLAN_H -void gta02_wlan_power(int on); +void gta02_wlan_reset(int assert_reset); int gta02_wlan_query_rfkill_lock(void); void gta02_wlan_query_rfkill_unlock(void); void gta02_wlan_set_rfkill_cb(int (*cb)(void *user, int on), void *user); -- cgit v1.2.3