Linux-i2c Archive on lore.kernel.org
 help / color / Atom feed
* [PATCH] i2c: core: Fix spacing error by checkpatch
@ 2021-04-05  8:18 Tian Tao
  2021-04-16 23:08 ` Wolfram Sang
  0 siblings, 1 reply; 2+ messages in thread
From: Tian Tao @ 2021-04-05  8:18 UTC (permalink / raw)
  To: wsa; +Cc: linux-i2c

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>
---
 drivers/i2c/i2c-core-base.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/i2c/i2c-core-base.c b/drivers/i2c/i2c-core-base.c
index 7039b8a..e4d4a34 100644
--- a/drivers/i2c/i2c-core-base.c
+++ b/drivers/i2c/i2c-core-base.c
@@ -612,7 +612,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;
 
-- 
2.7.4


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] i2c: core: Fix spacing error by checkpatch
  2021-04-05  8:18 [PATCH] i2c: core: Fix spacing error by checkpatch Tian Tao
@ 2021-04-16 23:08 ` Wolfram Sang
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfram Sang @ 2021-04-16 23:08 UTC (permalink / raw)
  To: Tian Tao; +Cc: linux-i2c


[-- Attachment #1: Type: text/plain, Size: 375 bytes --]

On Mon, Apr 05, 2021 at 04:18:42PM +0800, Tian Tao wrote:
> 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>

Applied to for-next, thanks!


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-05  8:18 [PATCH] i2c: core: Fix spacing error by checkpatch Tian Tao
2021-04-16 23:08 ` Wolfram Sang

Linux-i2c Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-i2c/0 linux-i2c/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-i2c linux-i2c/ https://lore.kernel.org/linux-i2c \
		linux-i2c@vger.kernel.org
	public-inbox-index linux-i2c

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-i2c


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git