Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5137635rdb; Tue, 12 Dec 2023 22:57:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IG2ZxUqhYwCFoi72Ichjuy61UrjFRKgF8LUy/UXmM4WeExpToo0JL9LS0wlfiZESFoqsMzA X-Received: by 2002:a17:902:a609:b0:1cf:7666:4dd0 with SMTP id u9-20020a170902a60900b001cf76664dd0mr7122843plq.39.1702450666425; Tue, 12 Dec 2023 22:57:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702450666; cv=none; d=google.com; s=arc-20160816; b=iVD+0xeXI/gv3Zf/KwJ9w2pA48WSy/RDpFulWF9ujEZWuQ5tMeBSt1H3zOfkEtR/2r RDA0QhxGSfhB3Jw+3/spQEHHE/ZYK1058MW6zs6b0XnS8nGhKwMoWkLA1r8eUsKme3VY XeSPCM1sykCGDgS+hGPdbzpm57J44so6QU+yyYqGhHfVeO09oKiULPeAPD1cITZDW6/J QNzOJGCoLZeGubGwZXJzEpRus4bjWnstZL/1glOAK5z8iiOS1MPxRww0pgk++PBxj0vx GyDNJTo9f0PA6VkS3uABbg9eiV1mp+AwsxOATteouEpbPDC4SSpKuggndbyzX4jy3lQa pPUw== 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=T0VCk3MHUidn6Ccs8CBuDFAbju1kc7PhPe0+uu5yowo=; fh=VhFdVNCSW9L3znus0Xi7WfEDAuyjLENU86z9q/7pzoU=; b=E+5WrHVGYzpcqfriYQv8dSNYfrS+5Nk2bCkI3wh7m/ErUxFRAEZVu80Sn4P0sdKkoZ EMEm4wPXHTSe0Br2Ki4d8SBzI2MWOm3z1nWcicYzrGb7TYwUynyXFitJXC5zHPvzH/Pr dngbRNa9N60abKuTTGqCmSCYYga7piSsRaOWsj2QPW/yM1vkqsiiT2N+Nq75cmVf4IBt bpIHTE8vnCvrYTdF1sktDo2WJxui+HYXg5IXUpY5Gdg4M6f8aUuonEjdIb1nIFKkHUNA LIewpukj6LqdgtoakHO7J6swdQJF0kOeDPT0fheoruMsSZZmVXTgj2Z0FfChOcAOB/oT w+Tg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=TVjIdV0k; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id ba6-20020a170902720600b001cfb52ebfdbsi8863522plb.152.2023.12.12.22.57.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 22:57:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=TVjIdV0k; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 2C9CC81EA5E8; Tue, 12 Dec 2023 22:57:44 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235255AbjLMG53 (ORCPT + 99 others); Wed, 13 Dec 2023 01:57:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42342 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233147AbjLMG52 (ORCPT ); Wed, 13 Dec 2023 01:57:28 -0500 Received: from mail-oo1-xc2c.google.com (mail-oo1-xc2c.google.com [IPv6:2607:f8b0:4864:20::c2c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5019199; Tue, 12 Dec 2023 22:57:35 -0800 (PST) Received: by mail-oo1-xc2c.google.com with SMTP id 006d021491bc7-589d4033e84so3815069eaf.1; Tue, 12 Dec 2023 22:57:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702450654; x=1703055454; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=T0VCk3MHUidn6Ccs8CBuDFAbju1kc7PhPe0+uu5yowo=; b=TVjIdV0k38zCl2sHMexMIn0ARARd4tvi80dPo57iwGiUDe6+2MyJqLj4t3RQxlgSoU VUuFj6g4auPzCeJoMaiwA5fAjyH7AoGXqNo8ghWgoFusjjm52p7qe3DmdUaSui2sLRvr GbDp3btwhmGrnjErZWBFHpAGj1fTE2+nKA8JAh5+CBmGg7Y2Tw+2UWPp6pPedtF/wniH 6nNBMacRuhXILHuh3gq8H7DsHcPXxXfirJQD1C7Z4cXBzVpC8xa5ViCUbZvX2czTQvAC J4V4XiKnbVLZe2zlWKnCpe0PZblFjuQFsNn0oq8pKfOaxsaMC8zO9pMx7swrWbrhpoZB F3SA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702450654; x=1703055454; 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 :message-id:reply-to; bh=T0VCk3MHUidn6Ccs8CBuDFAbju1kc7PhPe0+uu5yowo=; b=Jsb/HrnIm6dnEDUq0lsPw9vxFpb3hBm5vhdhD6JJ5elMHbaPPSeDH/iSEyDT/Xaabk VXnSXSyR29wtgFm5is4N2xiwOy1LAwMIeXbPytBakCiJpD2bRDtBwNESFaLrYFCRRA48 B7cnz5gN0sFoxvyuj6/E0fVrdcBEfFm38WYKPR3J9IAi9bVOkkqm6QTBw51UyIEI76vs gkDy9xanPBtv0V8rxNPEO5VBgTprCGNuHv3EpUrgA3esc6YOR43vmCsZgei3v478kWfD 4n1sdLjYdyqG1dbKWHb5KN83OGagayoFJYAn5ocR+eqc9ElrNkmqC+0KoA2gGEFRO1a4 /IZw== X-Gm-Message-State: AOJu0YzNH16jPJc5rR37Pp1uhLIECQZ8PKrTlXxXyO7e1/87T0OvvHpQ 2cZlejhX6bbmrS1Zk5GdGta+jdmxO/5yzQ== X-Received: by 2002:a05:6359:4282:b0:170:64cd:8aac with SMTP id kp2-20020a056359428200b0017064cd8aacmr8632806rwb.62.1702450654414; Tue, 12 Dec 2023 22:57:34 -0800 (PST) Received: from google.com ([2620:15c:9d:2:96c1:256f:67e0:c0db]) by smtp.gmail.com with ESMTPSA id t19-20020a056a0021d300b006ce77ffcc75sm8280883pfj.165.2023.12.12.22.57.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 22:57:34 -0800 (PST) Date: Tue, 12 Dec 2023 22:57:31 -0800 From: Dmitry Torokhov To: ye.xingchen@zte.com.cn Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, jeff@labundy.com Subject: Re: [PATCH v2] Input: use sysfs_emit() to instead of scnprintf() Message-ID: References: <202212021133398847947@zte.com.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202212021133398847947@zte.com.cn> X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,FSL_HELO_FAKE, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Tue, 12 Dec 2023 22:57:44 -0800 (PST) On Fri, Dec 02, 2022 at 11:33:39AM +0800, ye.xingchen@zte.com.cn wrote: > From: ye xingchen > > Replace the open-code with sysfs_emit() to simplify the code. > > Signed-off-by: ye xingchen Applied, thank you. -- Dmitry