summaryrefslogtreecommitdiffstats
path: root/lib/percpu_counter.c
diff options
context:
space:
mode:
authorMika Westerberg <mika.westerberg@linux.intel.com>2019-12-17 13:33:38 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-12-18 15:34:24 +0100
commit4deb200d34a779aa336ddcd213e39eb6104eb78a (patch)
treed4e446b1e18fcbb34a9aa7af775be700d655f82a /lib/percpu_counter.c
parentthunderbolt: Make tb_find_port() available to other files (diff)
downloadlinux-4deb200d34a779aa336ddcd213e39eb6104eb78a.tar.xz
linux-4deb200d34a779aa336ddcd213e39eb6104eb78a.zip
thunderbolt: Call tb_eeprom_get_drom_offset() from tb_eeprom_read_n()
We are going to re-use tb_drom_read() for USB4 DROM reading as well. USB4 has separate router operations for this which does not need the drom_offset. Therefore we move call to tb_eeprom_get_drom_offset() into tb_eeprom_read_n() where it is needed. While there change return -ENOSYS to -ENODEV because the former is only supposed to be used with system calls (invalid syscall nr). Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com> Link: https://lore.kernel.org/r/20191217123345.31850-3-mika.westerberg@linux.intel.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib/percpu_counter.c')
0 files changed, 0 insertions, 0 deletions