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: Tejun Heo <htejun@gmail.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
This commit is contained in:
@@ -99,13 +99,13 @@ extern struct ata_port *ata_port_alloc(struct ata_host *host);
|
||||
/* libata-acpi.c */
|
||||
#ifdef CONFIG_ATA_ACPI
|
||||
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
|
||||
static inline int ata_acpi_exec_tfs(struct ata_port *ap)
|
||||
{
|
||||
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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user