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>
Showing
- drivers/ata/ahci.c 1 addition, 1 deletiondrivers/ata/ahci.c
- drivers/ata/ahci.h 1 addition, 1 deletiondrivers/ata/ahci.h
- drivers/ata/ahci_platform.c 1 addition, 1 deletiondrivers/ata/ahci_platform.c
- drivers/ata/libahci.c 9 additions, 11 deletionsdrivers/ata/libahci.c
- drivers/ata/libata-core.c 25 additions, 25 deletionsdrivers/ata/libata-core.c
- drivers/ata/libata-eh.c 1 addition, 1 deletiondrivers/ata/libata-eh.c
- drivers/ata/libata-scsi.c 22 additions, 44 deletionsdrivers/ata/libata-scsi.c
- drivers/ata/libata.h 4 additions, 2 deletionsdrivers/ata/libata.h
- include/linux/libata.h 15 additions, 14 deletionsinclude/linux/libata.h
Loading
Please register or sign in to comment