summaryrefslogtreecommitdiff
path: root/drivers/staging/media/atomisp/i2c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>2020-05-10 14:39:18 +0300
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2020-05-20 15:51:28 +0300
commit85df8457b31c4c277f59b80c1e2a636d34f0c8ce (patch)
tree623358fed921f950b7fd65406fc21ba9dfafb07e /drivers/staging/media/atomisp/i2c
parent0d64e9420583cbc3c4a3f949ebe38fd8f7769281 (diff)
downloadlinux-85df8457b31c4c277f59b80c1e2a636d34f0c8ce.tar.xz
media: atomisp: better display DMI and EFI found entries
There are several device-specific data that are obtained either via DMI or EFI, with changes the driver's behavior. Display what has been detected, as such info may help identifying troubles at the driver. Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'drivers/staging/media/atomisp/i2c')
-rw-r--r--drivers/staging/media/atomisp/i2c/atomisp-ov2680.c2
-rw-r--r--drivers/staging/media/atomisp/i2c/ov5693/atomisp-ov5693.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/media/atomisp/i2c/atomisp-ov2680.c b/drivers/staging/media/atomisp/i2c/atomisp-ov2680.c
index 4f1e0d8df8e1..4601cefde89b 100644
--- a/drivers/staging/media/atomisp/i2c/atomisp-ov2680.c
+++ b/drivers/staging/media/atomisp/i2c/atomisp-ov2680.c
@@ -1395,7 +1395,7 @@ static int ov2680_probe(struct i2c_client *client)
return -ENODEV;
}
- pr_info("%s: ACPI detected it on bus ID=%s, HID=%s\n",
+ dev_info(&client->dev, "%s: ACPI detected it on bus ID=%s, HID=%s\n",
__func__, acpi_device_bid(adev), acpi_device_hid(adev));
dev = kzalloc(sizeof(*dev), GFP_KERNEL);
diff --git a/drivers/staging/media/atomisp/i2c/ov5693/atomisp-ov5693.c b/drivers/staging/media/atomisp/i2c/ov5693/atomisp-ov5693.c
index 6572e927cf9b..886f9fd0152f 100644
--- a/drivers/staging/media/atomisp/i2c/ov5693/atomisp-ov5693.c
+++ b/drivers/staging/media/atomisp/i2c/ov5693/atomisp-ov5693.c
@@ -1919,7 +1919,7 @@ static int ov5693_probe(struct i2c_client *client)
* some BIOS versions haven't gotten the memo. Work around
* via config.
*/
- i2c = gmin_get_var_int(&client->dev, "I2CAddr", -1);
+ i2c = gmin_get_var_int(&client->dev, false, "I2CAddr", -1);
if (i2c != -1) {
dev_info(&client->dev,
"Overriding firmware-provided I2C address (0x%x) with 0x%x\n",