Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp33939rwb; Mon, 26 Sep 2022 08:59:21 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6xqUCzGxXV7JkWBmIdGmoilK2M2EaRsWKddeCsW+ZT3zk8thpaonUA/EULGwaRNoL0+tZm X-Received: by 2002:a17:902:ea11:b0:176:b283:9596 with SMTP id s17-20020a170902ea1100b00176b2839596mr22104068plg.69.1664207961186; Mon, 26 Sep 2022 08:59:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664207961; cv=none; d=google.com; s=arc-20160816; b=ZhieZ5phtiHwNHHcn8JNY2lKBg3WYEPhZWFC4NSArzykrFIi8r9asvDaxFKx2z+CcI bZshT2XQie2PKLvlDCPOA178fUUxiFvCRPFCctuAXH2LVpeRKyWa0FLhNE/e7ahX8/YL 6aHzID58FP4mI3jDCIbROexr++xhzj6sB1Yx1Yvn5w3uXcyLgksKRHBbJgY+w+Fe4ixa D6qXaLHsqVM2JIU3ooAKUL9ReVeZaOOgTGPTctOS8HxGo3yzcDl5F/Rj2NpU33SNA/D5 NOgf+FUZVeu1FcWdEJa2Zwzg9vmL7NNlPIpzDFQ3Qs9gOWyRV5vtYJXaq2hBRzV6DoyJ RBkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=X/u3aGJCrbkEF/LSnrxfR5RsWBFDbfL2F5GZoEHQi8Y=; b=wNqarQAWOfutMwDvWqhcXkIpfRMTh6Oux0X9kndDY6HrokivR7z0VqnmvZ4WpWDMW/ 8Du5wat8GRz8YUnwddTBk+i7CFpjAxKLd70qow28dfhzXufa5VBcNoyFxFODmyhtaATV mHPi4zF33D0m4VFCE5NA5Xe0R25OGwGJK1zXlGc01F99VS7JaSO94hK+ct584UOfwohy GfXMvlHfphU2e3TZQysGacgh18ma2VXQA+nwHSTUsuyeSZ1qDb0DYWKHK9y89twfJPAA pCQFbbHH3pAZ6uPXkh4v9pt+TddyXet6v+1OTeAVRpS8mR1Gps5P8ks/E7OIMuD9jRrR 002g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HFRSaNDS; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k191-20020a6384c8000000b0043be00f7830si18965631pgd.21.2022.09.26.08.59.09; Mon, 26 Sep 2022 08:59:21 -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=@linaro.org header.s=google header.b=HFRSaNDS; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235286AbiIZO4h (ORCPT + 99 others); Mon, 26 Sep 2022 10:56:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39050 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235383AbiIZOz6 (ORCPT ); Mon, 26 Sep 2022 10:55:58 -0400 Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E14DE753A2 for ; Mon, 26 Sep 2022 06:26:11 -0700 (PDT) Received: by mail-wr1-x42e.google.com with SMTP id c11so10179752wrp.11 for ; Mon, 26 Sep 2022 06:26:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date; bh=X/u3aGJCrbkEF/LSnrxfR5RsWBFDbfL2F5GZoEHQi8Y=; b=HFRSaNDSXe/IPWDRdSnalB/Djq1JReM3c5LxDtVPZmVL4Sg3Qto1PqRPhVK/O0+IaV FkIkWDniefzUs3O3qL0vC8P6McDxYq+QkZtszEJXQTrnQ3waKQGTMfIqN3e1ezxAgbBz YXmAGLouSYiXVQTNPUzVoN1oMdePXpI5ed5nN1lsET+6xuE8C1FxX/rVEfCTnMaYkEz0 RXd4L7zzJUWOIT9rjRT9L/rKw5qyi6tFx6X/zAfIgXNWEj6LYHDxDG01oiHh9ZOCO+M5 ZN2wdkX5UaRFpJWASR9vE7BqmT+O4jHbMptqccVV4OSEd+NLRW1slYLYh2A1g8nMXOoj zkrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date; bh=X/u3aGJCrbkEF/LSnrxfR5RsWBFDbfL2F5GZoEHQi8Y=; b=tT/e9IBOjsQrxSAVARKEkE8WzoywdcMouw9x63K2QhwyaSXylNQ4AjfB6nJ3MNeVKl pK9lQPJiKRNHP/hiiTFqqgN6eRqxa1kpHZlmH+EDz/KOd9OoHXmJE8ZBH4eO1C2gyScU 6CCth2EGi5RDNrjoqapeW9NhJzmse/hGmAFsa3/pwT7c/+CCCyf1Yqx30uG5EMgs/DzO 4y4yNltyD2TCV6muLjVjXv9LieMWDGOymzxtEWDdk1QiDAXxdZBXi0Kz8/dYqvJMmEPc a0fWAYWm3fGs2LsPb1JR83EJ+z+PYcwllIVNv0Ps51pqFH23NC29rAJdVC371GhMpTYV OmYw== X-Gm-Message-State: ACrzQf2rEYP/Z9Zsn5OOnOF3duQ/HlgFXjU8qQjdym+8JuOKMyzgV0wg G5paj6iyivpyztQfflY5cMpGKg== X-Received: by 2002:a05:6000:1849:b0:228:c87d:2578 with SMTP id c9-20020a056000184900b00228c87d2578mr13552933wri.274.1664198770388; Mon, 26 Sep 2022 06:26:10 -0700 (PDT) Received: from maple.lan (cpc141216-aztw34-2-0-cust174.18-1.cable.virginm.net. [80.7.220.175]) by smtp.gmail.com with ESMTPSA id u15-20020a05600c19cf00b003a2f2bb72d5sm13904956wmq.45.2022.09.26.06.26.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Sep 2022 06:26:09 -0700 (PDT) Date: Mon, 26 Sep 2022 14:26:07 +0100 From: Daniel Thompson To: cgel.zte@gmail.com Cc: lee@kernel.org, jingoohan1@gmail.com, deller@gmx.de, dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org, ye xingchen Subject: Re: [PATCH linux-next] backlight: use sysfs_emit() to instead of scnprintf() Message-ID: References: <20220923063448.239259-1-ye.xingchen@zte.com.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220923063448.239259-1-ye.xingchen@zte.com.cn> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 Fri, Sep 23, 2022 at 06:34:48AM +0000, cgel.zte@gmail.com wrote: > Subject: [PATCH linux-next] backlight: use sysfs_emit() to instead of > scnprintf() > From: ye xingchen > > Replace the open-code with sysfs_emit() to simplify the code. > > Signed-off-by: ye xingchen > --- > drivers/video/backlight/lm3533_bl.c | 10 +++++----- Looks like a good change but the topic tag ('backlight:') looks a bit generic for something that only impacts the lm3533_bl.c driver. Also it would be good if this patchset included the same fix for *all* drivers that a grep shows contain this code pattern (e.g. git grep 'return scnprintf.*PAGE_SIZE'). Daniel.