Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp5546031rwi; Tue, 18 Oct 2022 00:07:04 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4kVijYVaPhNai7oNnnFGrFRSYAf5EV1o1Ee2I+a2Hh5GPqJeazMsD2P+VAXXGGRDahrgXo X-Received: by 2002:a17:906:db0a:b0:781:f24:a782 with SMTP id xj10-20020a170906db0a00b007810f24a782mr1189306ejb.399.1666076824367; Tue, 18 Oct 2022 00:07:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666076824; cv=none; d=google.com; s=arc-20160816; b=BOn2vlxiaRZzyFl8cMp0Wl7KdKVuAQ9qnYK/NIGLgL65o2rGK35lUGzuM7VJfI2eSC UAs0XMOEsQdvCsMa/nRtHE71KT2P3JqRyMx2MPHM2BMOmdX6yjG7iF1QdfnyjkOxfHQq a7o+bdfWOiyaC/RNLSiNwHV1aJmuZzvpUb/b4nbJTq51j0jZLTanDWytY1ikwH7lcbqA WyhHSVgeDYXnVUtnwrde7Sx4t2HAyvtlfsdokBUVXJgvDAgMiOam5OyUTqWZ8oBNRTn3 zOpLG/8fh2f5U9fGMSGM7acXfFufv+B1aKohUZorc3EuAvgyOx/JyOOmuWgpo5YzAPyj 1Cow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=PU91vfCEW2Yv925zkaKJCkQaAC1XQtrlgbZBT3RtHiM=; b=VytMlKHTM3X7unoYYgWqQvikqMCm6acCOfZxDlaUL7mO8OZZERY98ZLMi4gYVTd6GQ 9u9y0OI2slHHXJxTf37KE+EomxoAuRE/cm5rvzBKk18Hnz8SBBOlQ/idLqT+VT3tpyht wTDuNYoYrzzvk0xcBzBqxoLS7gaBZ7WoL7yNcSkotEkkFTvYzKV/dST5rUv5onRHTpoc q6JeHp7PE3xAYOcRSZ8xn9MyJDRNtnQZDw41UsdJNeONVPhexAqoIWZ4rulzAyIpn9/t aLINr3S0Gnk+ZFe5BnbfRtLHiJyO38rxaUXGYaQzMQ9GpTrY6L8Li89ksSdYwp0dGZVJ 9w8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=dorsbPzY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q4-20020a056402248400b0045c21f435dbsi10776534eda.521.2022.10.18.00.06.38; Tue, 18 Oct 2022 00:07:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=dorsbPzY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229900AbiJRGoo (ORCPT + 99 others); Tue, 18 Oct 2022 02:44:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57328 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229535AbiJRGoj (ORCPT ); Tue, 18 Oct 2022 02:44:39 -0400 Received: from mout.gmx.net (mout.gmx.net [212.227.17.22]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B6222B1A5; Mon, 17 Oct 2022 23:44:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1666075457; bh=63HZwXGejDLFqTyjSGQIERszUjqAubInWNkbhxQHRfw=; h=X-UI-Sender-Class:Date:Subject:To:Cc:References:From:In-Reply-To; b=dorsbPzY5+G3UbsKLlQ90/xJXEeNF+VxEYVaQbu6mS+CKoHHwr5Jmf2/kzrZlvGj6 4iFK+UZ+7t6g15AsfLz1IZhqJ0irysgeDvAblo8rlmaenoXS75dvbkZzPM4eq1E7H+ pAZn+1jouJBRJR0VFZ5jjgrICiYxdW/fMr4gCuys= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.20.60] ([92.116.165.172]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MGz1f-1oxedu34sd-00E3TI; Tue, 18 Oct 2022 08:44:17 +0200 Message-ID: Date: Tue, 18 Oct 2022 08:44:16 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.1 Subject: Re: [PATCH] video: fbdev: sm501fb: onvert sysfs snprintf to sysfs_emit Content-Language: en-US To: Xuezhi Zhang , zhangxuezhi1@coolpad.com, wsa+renesas@sang-engineering.com Cc: linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org References: <20221018062548.642910-1-zhangxuezhi3@gmail.com> From: Helge Deller In-Reply-To: <20221018062548.642910-1-zhangxuezhi3@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:m0LUg5lPRQQEw6XOGHCdkytsWPN2mwF8nfxCnoi7lXPqe5vNeO0 8HONJbY/nJaUWviqJy6UB65Ve3vgZB99WGxPyhFluZZ8ydSoH3bbpZaIWwMzF3UgRc32P2J sRUWmEzUdIakUVq6svprEX+E7zcCE9t+bpk48YuwIotineLHPHL4H6A8AhvzeD34RD3MwOd YnQj6j5aa/RGSOuvMCX6Q== X-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xm0+TPgU3GX3k6wKyPX bXmOPxWBkHifUPcbiK0JI1LYB0L1ZneGTTiJNvQB3TRXYVzzgsR+bgkHnf3NSe2Kcz75foDcO Xwn9JW9kif1e7vyFkHmpAm34+TYNcPPLpJf/4ko9oqIFs4ZI9AfgZidojsMkTM1wcXvA8TE/g rWxLsSLM2dzREsrv/hDOZyLD2STn2yqgSqfhqY33r4y/KM03Q+bExBTwbpFv0xCahr50cPF3v cYcHCQFMHAQZVaX3tBLPkPsYJFHzM2KtYjNe3y8zYblJ1b60nWIW9etTaofRL0xSDvfZGEfER XVI4qgn28iXWlyuSWKt6GVY5+oCqIiKDZvLJGucFzF8TOJR6vRSroqvbxcDzp4nsNWXHQETDg shpwI8cbZIhNUXeDsdZAZSxRx82bjhqBhxP9zpsyR9F7vPrHifBVl43S22z1IuMO6n7I+JIyh C1AofKqaV+8jyACEq/kYJfrUEjBsp2A9Bqv4mf0bkHsgsjG6j7oFPq9nNfxX+M65DILrQPiVE esiBCVrxM3Zsm04Z5zhm9ygkMt1ChCpz1gl9vb/mByDYN X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_FROM,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/18/22 08:25, Xuezhi Zhang wrote: > From: Xuezhi Zhang > > Follow the advice of the Documentation/filesystems/sysfs.rst > and show() should only use sysfs_emit() or sysfs_emit_at() > when formatting the value to be returned to user space. > > Signed-off-by: Xuezhi Zhang applied. Thanks! Helge > --- > drivers/video/fbdev/sm501fb.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/video/fbdev/sm501fb.c b/drivers/video/fbdev/sm501fb= .c > index fce6cfbadfd6..f743bfbde2a6 100644 > --- a/drivers/video/fbdev/sm501fb.c > +++ b/drivers/video/fbdev/sm501fb.c > @@ -1166,7 +1166,7 @@ static ssize_t sm501fb_crtsrc_show(struct device *= dev, > ctrl =3D smc501_readl(info->regs + SM501_DC_CRT_CONTROL); > ctrl &=3D SM501_DC_CRT_CONTROL_SEL; > > - return snprintf(buf, PAGE_SIZE, "%s\n", ctrl ? "crt" : "panel"); > + return sysfs_emit(buf, "%s\n", ctrl ? "crt" : "panel"); > } > > /* sm501fb_crtsrc_show