summaryrefslogtreecommitdiffstats
path: root/drivers/i2c
diff options
context:
space:
mode:
authorTian Tao <tiantao6@hisilicon.com>2021-04-05 16:18:42 +0800
committerWolfram Sang <wsa@kernel.org>2021-04-17 01:08:18 +0200
commit068ff57d78011e6ed3561455a999f4a0272ea2c7 (patch)
tree0d60f2b6aba3b04e1b7058965e989d362999a13b /drivers/i2c
parentaf92cca1710f63741925d97fe6ec0bd5eecec627 (diff)
downloadlinux-068ff57d78011e6ed3561455a999f4a0272ea2c7.tar.bz2
i2c: core: Fix spacing error by checkpatch
Fix the following checkpatch error: #614: FILE: drivers/i2c/i2c-core-base.c:614: + len = acpi_device_modalias(dev, buf, PAGE_SIZE -1); ^ No functional changes. Signed-off-by: Tian Tao <tiantao6@hisilicon.com> Signed-off-by: Wolfram Sang <wsa@kernel.org>
Diffstat (limited to 'drivers/i2c')
-rw-r--r--drivers/i2c/i2c-core-base.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/i2c-core-base.c b/drivers/i2c/i2c-core-base.c
index 4351bf529d0f..3478d208d174 100644
--- a/drivers/i2c/i2c-core-base.c
+++ b/drivers/i2c/i2c-core-base.c
@@ -651,7 +651,7 @@ modalias_show(struct device *dev, struct device_attribute *attr, char *buf)
if (len != -ENODEV)
return len;
- len = acpi_device_modalias(dev, buf, PAGE_SIZE -1);
+ len = acpi_device_modalias(dev, buf, PAGE_SIZE - 1);
if (len != -ENODEV)
return len;