]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
libata: clean up lpm related symbols and sysfs show/store functions
authorTejun Heo <tj@kernel.org>
Wed, 1 Sep 2010 15:50:04 +0000 (17:50 +0200)
committerJeff Garzik <jgarzik@redhat.com>
Fri, 22 Oct 2010 00:21:04 +0000 (20:21 -0400)
commitc93b263e0d4fa8ce5fec0142a98196d1a127e845
tree6495053b65f7a79d1e5c11aaea77dd25e4082a84
parentc43d559f0423816bb2918d892131d21c51816c3d
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>
drivers/ata/ahci.c
drivers/ata/ahci.h
drivers/ata/ahci_platform.c
drivers/ata/libahci.c
drivers/ata/libata-core.c
drivers/ata/libata-eh.c
drivers/ata/libata-scsi.c
drivers/ata/libata.h
include/linux/libata.h