Skip to content

Commit

Permalink
ata: ahci: drop hpriv param from ahci_update_initial_lpm_policy()
Browse files Browse the repository at this point in the history
There is no need for ahci_update_initial_lpm_policy() to take hpriv as a
parameter, it can easily be derived from the ata_port.

Tested-by: Damien Le Moal <dlemoal@kernel.org>
Tested-by: Jian-Hong Pan <jhp@endlessos.org>
Acked-by: Jian-Hong Pan <jhp@endlessos.org>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Niklas Cassel <cassel@kernel.org>
  • Loading branch information
Niklas Cassel committed Feb 9, 2024
1 parent 45b96d6 commit 04d5fb7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/ata/ahci.c
Original file line number Diff line number Diff line change
Expand Up @@ -1655,9 +1655,9 @@ static void ahci_mark_external_port(struct ata_port *ap)
ap->pflags |= ATA_PFLAG_EXTERNAL;
}

static void ahci_update_initial_lpm_policy(struct ata_port *ap,
struct ahci_host_priv *hpriv)
static void ahci_update_initial_lpm_policy(struct ata_port *ap)
{
struct ahci_host_priv *hpriv = ap->host->private_data;
int policy = CONFIG_SATA_MOBILE_LPM_POLICY;


Expand Down Expand Up @@ -1949,7 +1949,7 @@ static int ahci_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)

ahci_mark_external_port(ap);

ahci_update_initial_lpm_policy(ap, hpriv);
ahci_update_initial_lpm_policy(ap);

/* disabled/not-implemented port */
if (!(hpriv->port_map & (1 << i)))
Expand Down

0 comments on commit 04d5fb7

Please sign in to comment.