aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/intel/igc
diff options
context:
space:
mode:
authorYao Zi <ziyao@disroot.org>2024-11-18 06:46:39 +0000
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>2024-11-18 13:52:31 +0200
commit5c7bebc1a3f0661db558d60e14dde27fc216d9dc (patch)
treed642449c5a8dab73e3fc0c5dbf97323a2ca2f044 /drivers/net/ethernet/intel/igc
parent6674c5a0eeb55143cd10514d0083624e056e7d13 (diff)
downloadlinux-5c7bebc1a3f0661db558d60e14dde27fc216d9dc.tar.gz
linux-5c7bebc1a3f0661db558d60e14dde27fc216d9dc.tar.bz2
linux-5c7bebc1a3f0661db558d60e14dde27fc216d9dc.zip
platform/x86: panasonic-laptop: Return errno correctly in show callback
When an error occurs in sysfs show callback, we should return the errno directly instead of formatting it as the result, which produces meaningless output and doesn't inform the userspace of the error. Fixes: 468f96bfa3a0 ("platform/x86: panasonic-laptop: Add support for battery charging threshold (eco mode)") Fixes: d5a81d8e864b ("platform/x86: panasonic-laptop: Add support for optical driver power in Y and W series") Signed-off-by: Yao Zi <ziyao@disroot.org> Reviewed-by: Hans de Goede <hdegoede@redhat.com> Link: https://lore.kernel.org/r/20241118064637.61832-3-ziyao@disroot.org Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/igc')
0 files changed, 0 insertions, 0 deletions