Commit 3a32a8e9 authored by Tejun Heo's avatar Tejun Heo Committed by Jeff Garzik

libata-acpi: clean up parameters and misc stuff

This patch cleans up libata-acpi such that it looks similar to other
libata files.  This patch doesn't introuce any behavior changes.

* make libata-acpi functions take ata_device instead of ata_port +
  device index
* s/atadev/dev/
* de-indent local variable declarations
Signed-off-by: default avatarTejun Heo <htejun@gmail.com>
Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
parent e92351bb
This diff is collapsed.
...@@ -1869,7 +1869,7 @@ int ata_dev_configure(struct ata_device *dev) ...@@ -1869,7 +1869,7 @@ int ata_dev_configure(struct ata_device *dev)
ata_dev_printk(dev, KERN_DEBUG, "%s: ENTER\n", __FUNCTION__); ata_dev_printk(dev, KERN_DEBUG, "%s: ENTER\n", __FUNCTION__);
/* set _SDD */ /* set _SDD */
rc = ata_acpi_push_id(ap, dev->devno); rc = ata_acpi_push_id(dev);
if (rc) { if (rc) {
ata_dev_printk(dev, KERN_WARNING, "failed to set _SDD(%d)\n", ata_dev_printk(dev, KERN_WARNING, "failed to set _SDD(%d)\n",
rc); rc);
......
...@@ -99,13 +99,13 @@ extern struct ata_port *ata_port_alloc(struct ata_host *host); ...@@ -99,13 +99,13 @@ extern struct ata_port *ata_port_alloc(struct ata_host *host);
/* libata-acpi.c */ /* libata-acpi.c */
#ifdef CONFIG_ATA_ACPI #ifdef CONFIG_ATA_ACPI
extern int ata_acpi_exec_tfs(struct ata_port *ap); extern int ata_acpi_exec_tfs(struct ata_port *ap);
extern int ata_acpi_push_id(struct ata_port *ap, unsigned int ix); extern int ata_acpi_push_id(struct ata_device *dev);
#else #else
static inline int ata_acpi_exec_tfs(struct ata_port *ap) static inline int ata_acpi_exec_tfs(struct ata_port *ap)
{ {
return 0; return 0;
} }
static inline int ata_acpi_push_id(struct ata_port *ap, unsigned int ix) static inline int ata_acpi_push_id(struct ata_device *dev)
{ {
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment