]> git.baikalelectronics.ru Git - kernel.git/commit
ata: pata_hpt37x: merge hpt374_read_freq() to hpt37x_pci_clock()
authorSergey Shtylyov <s.shtylyov@omp.ru>
Sun, 15 May 2022 20:41:25 +0000 (23:41 +0300)
committerDamien Le Moal <damien.lemoal@opensource.wdc.com>
Mon, 13 Jun 2022 02:42:58 +0000 (11:42 +0900)
commit3152606f084459a40bbd477704d620088b7c97fc
treebf8809f0c7bc7e6c666ccedb07abd36e62693e1c
parente68ba38988eab1fa6e8ac7fa47c2229a6349efb1
ata: pata_hpt37x: merge hpt374_read_freq() to hpt37x_pci_clock()

With hpt374_read_freq() implemented as a separate function, there's
some code duplication going on, not to mention that this function is
named incorrectly: it returns the f_CNT register value saved by BIOS,
not the PCI clock frequency.
Folding hpt374_read_freq() into hpt37x_pci_clock() saves 20 bytes of
object code with x86_64 gcc 10.3.1...

Signed-off-by: Sergey Shtylyov <s.shtylyov@omp.ru>
Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
drivers/ata/pata_hpt37x.c