summaryrefslogtreecommitdiffstats
path: root/drivers/base/platform.c
diff options
context:
space:
mode:
authorBarry Song <song.bao.hua@hisilicon.com>2020-06-02 06:55:56 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-07-07 11:34:31 +0200
commite5711945c6415ab847b39ef89003ef68f9435bc6 (patch)
tree8b8c9c1691f8b47514befacff5fc0c1dad363ab6 /drivers/base/platform.c
parentlib: update DEBUG_SHIRQ docs to match reality (diff)
downloadlinux-e5711945c6415ab847b39ef89003ef68f9435bc6.tar.xz
linux-e5711945c6415ab847b39ef89003ef68f9435bc6.zip
driver core: platform: need consistent spacing around '-'
Fix the below checkpatch issue: ERROR: need consistent spacing around '-' (ctx:WxV) FILE: drivers/base/platform.c:1008: + len = acpi_device_modalias(dev, buf, PAGE_SIZE -1); ^ Signed-off-by: Barry Song <song.bao.hua@hisilicon.com> Link: https://lore.kernel.org/r/20200602045556.66948-1-song.bao.hua@hisilicon.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/base/platform.c')
-rw-r--r--drivers/base/platform.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/platform.c b/drivers/base/platform.c
index c0d0a5490ac6..3273a2fad4ad 100644
--- a/drivers/base/platform.c
+++ b/drivers/base/platform.c
@@ -1019,7 +1019,7 @@ static ssize_t modalias_show(struct device *dev, struct device_attribute *a,
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;