linux/drivers/misc
Hans de Goede bb6886bf1e misc: lis3lv02d: Change lis3lv02d_init_device() return value for unknown sensors to -ENODEV
Modern HP laptops do not necessarily actually contain a lis3lv02d
sensor, yet they still define a HPQ6007 device in there ACPI tables.

This leads to the following messages being logged in dmesg:

[   17.376342] hp_accel: laptop model unknown, using default axes configuration
[   17.399766] lis3lv02d: unknown sensor type 0x0
[   17.399804] hp_accel: probe of HPQ6007:00 failed with error -22

The third message is unnecessary and does not provide any useful info,
change the return value for unknown sensors to -ENODEV. This is the
proper return value to indicate that the driver will not be handling the
device and it silences the pr_warn printing the third message.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=199715
Link: https://lore.kernel.org/r/20210217102501.31758-2-hdegoede@redhat.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-03-24 08:26:29 +01:00
..
altera-stapl
bcm-vk misc: bcm-vk: only support ttyVK if CONFIG_TTY is set 2021-02-04 00:48:58 +01:00
c2port
cardreader misc: rtsx: init of rts522a add OCP power off when no card is present 2021-02-04 17:09:32 +01:00
cb710
cxl Char/Misc driver patches for 5.12-rc1 2021-02-24 10:25:37 -08:00
echo
eeprom misc: eeprom_93xx46: Add quirk to support Microchip 93LC46B eeprom 2021-01-20 18:52:12 +01:00
genwqe
habanalabs drivers: habanalabs: remove unused dentry pointer for debugfs files 2021-03-10 09:21:02 +01:00
ibmasm
lis3lv02d misc: lis3lv02d: Change lis3lv02d_init_device() return value for unknown sensors to -ENODEV 2021-03-24 08:26:29 +01:00
lkdtm drivers/misc/lkdtm: disable LTO for rodata.o 2021-01-14 08:21:09 -08:00
mei Char/Misc driver patches for 5.12-rc1 2021-02-24 10:25:37 -08:00
ocxl ocxl: use DEFINE_MUTEX() for mutex lock 2021-01-30 11:39:21 +11:00
sgi-gru
sgi-xp sgi-xp: remove h from printk format specifier 2021-01-26 19:36:02 +01:00
ti-st
uacce
vmw_vmci drivers/misc/vmw_vmci: restrict too big queue size in qp_host_alloc_queue 2021-02-09 12:22:32 +01:00
ad525x_dpot-i2c.c
ad525x_dpot-spi.c
ad525x_dpot.c drivers: misc: ad525x_dpot: Add missing check in dpot_read_spi 2021-03-10 09:21:02 +01:00
ad525x_dpot.h
apds990x.c
apds9802als.c
atmel-ssc.c
bh1770glc.c
cs5535-mfgpt.c
ds1682.c
dummy-irq.c
enclosure.c
fastrpc.c misc: fastrpc: restrict user apps from sending kernel RPC messages 2021-03-10 17:01:29 +01:00
hisi_hikey_usb.c
hmc6352.c
hpilo.c
hpilo.h
ibmvmc.c vio: make remove callback return void 2021-03-02 22:41:23 +11:00
ibmvmc.h
ics932s401.c
isl29003.c
isl29020.c
Kconfig misc: pti: Remove driver for deprecated platform 2021-01-27 13:35:01 +01:00
kgdbts.c kgdb: fix gcc-11 warning on indentation 2021-03-24 08:26:29 +01:00
lattice-ecp3-config.c
Makefile misc: pti: Remove driver for deprecated platform 2021-01-27 13:35:01 +01:00
pch_phub.c
pci_endpoint_test.c PCI: Add TI J721E device to PCI IDs 2021-02-23 14:12:41 -06:00
phantom.c
pvpanic.c misc/pvpanic: Export module FDT device table 2021-03-10 17:07:58 +01:00
qcom-coincell.c
sram-exec.c
sram.c
sram.h
tifm_7xx1.c
tifm_core.c
tsl2550.c
vmw_balloon.c drivers: vmw_balloon: remove dentry pointer for debugfs 2021-03-10 09:21:02 +01:00
xilinx_sdfec.c