diff options
author | Tejun Heo <tj@kernel.org> | 2010-09-01 11:50:04 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2010-10-21 20:21:04 -0400 |
commit | c93b263e0d4fa8ce5fec0142a98196d1a127e845 (patch) | |
tree | 6495053b65f7a79d1e5c11aaea77dd25e4082a84 /drivers/ata/libata.h | |
parent | c43d559f0423816bb2918d892131d21c51816c3d (diff) |
libata: clean up lpm related symbols and sysfs show/store functions
Link power management related symbols are in confusing state w/ mixed
usages of lpm, ipm and pm. This patch cleans up lpm related symbols
and sysfs show/store functions as follows.
* lpm states - NOT_AVAILABLE, MIN_POWER, MAX_PERFORMANCE and
MEDIUM_POWER are renamed to ATA_LPM_UNKNOWN and
ATA_LPM_{MIN|MAX|MED}_POWER.
* Pre/postfixes are unified to lpm.
* sysfs show/store functions for link_power_management_policy were
curiously named get/put and unnecessarily complex. Renamed to
show/store and simplified.
Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/ata/libata.h')
-rw-r--r-- | drivers/ata/libata.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/ata/libata.h b/drivers/ata/libata.h index 142102b94df..1471462e3e3 100644 --- a/drivers/ata/libata.h +++ b/drivers/ata/libata.h | |||
@@ -100,8 +100,10 @@ extern int sata_link_init_spd(struct ata_link *link); | |||
100 | extern int ata_task_ioctl(struct scsi_device *scsidev, void __user *arg); | 100 | extern int ata_task_ioctl(struct scsi_device *scsidev, void __user *arg); |
101 | extern int ata_cmd_ioctl(struct scsi_device *scsidev, void __user *arg); | 101 | extern int ata_cmd_ioctl(struct scsi_device *scsidev, void __user *arg); |
102 | extern struct ata_port *ata_port_alloc(struct ata_host *host); | 102 | extern struct ata_port *ata_port_alloc(struct ata_host *host); |
103 | extern void ata_dev_enable_pm(struct ata_device *dev, enum link_pm policy); | 103 | extern void ata_dev_enable_pm(struct ata_device *dev, |
104 | extern void ata_lpm_schedule(struct ata_port *ap, enum link_pm); | 104 | enum ata_lpm_policy policy); |
105 | extern void ata_lpm_schedule(struct ata_port *ap, | ||
106 | enum ata_lpm_policy policy); | ||
105 | extern const char *sata_spd_string(unsigned int spd); | 107 | extern const char *sata_spd_string(unsigned int spd); |
106 | 108 | ||
107 | /* libata-acpi.c */ | 109 | /* libata-acpi.c */ |