Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5137523rdb; Tue, 12 Dec 2023 22:57:23 -0800 (PST) X-Google-Smtp-Source: AGHT+IEu89w+Ot+QJnZYSGTc2loZ+h4U4o2W9GJllU4f/n7GdRynqSc/vGVNQ/KdAsXf229oBTAw X-Received: by 2002:a17:902:d508:b0:1d0:6ffd:9e06 with SMTP id b8-20020a170902d50800b001d06ffd9e06mr8123079plg.88.1702450642679; Tue, 12 Dec 2023 22:57:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702450642; cv=none; d=google.com; s=arc-20160816; b=Qa5g6lDVIAGyAiucfJcuYcDNI/A1+PssGSaYnsJWGBnkN1noS+vRWnpEfA2M7U2nIC KVnDMlIx3ICfJyPVTejMEn/Ofp6+QTxgkmMQ6EGleqJMETc+h35SaTtLbkrum4lDLZxO iR94ZpZs/UaGmUvP0KelYkdzfj6aPxOwN4o9kQchnoqDB5qJS6TRbuiw2g2I3unzbRwm 63laqzws7Tq+uq82YBmjlJ6RgyzrNCWsO3HvT5K6ivOSKip6NL8vPjApkRUapVXpbnmK 0ZaSbhCnA3kbzOsS6yvIZ8m2cxfq/WsXr3elppAOyYcAYue7z+1h2XEYTotEn4FO74ni xwrw== 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=IhkAtvgGaXDYadwgX0rvctwX2fGbm2rs7JZCU92GB5Q=; fh=zzHpvTASDYn9FNfuCcSGTh3MLf/CmEecBGzcjvMHDpU=; b=jp9E4xII3sJ3Q1+/GzIF/KOGUR1Yodg1WJoRK/KSvDxEKYmM0HsY9/doaCDDwK2yM4 qF2sn53euehBl9eSd9FMfdNAbtU3uLPh2ACKI50NyUyuQOAUQB5f67Xvq0uzZJYngDDt izS5r5iTNWhkUBtrEvPgGGZ1+GYxPvwcdIEkv9d6gQ+CDtpn/GcbFEqVnzsH03+Vdg/u s/6ls+Uaj0T8OQ/X+FtvDkLiDnokgYkeKotD+iJtJu2szWTHqTrFziqY5IUDKDlFrvCu 6YjfJZCitVMKWqfPLhMnH1FyS8vZu0J0798Hievi1GC8SrSx6hk0RQvWFN3g07JplLb2 cSSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=dIc6mod4; 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 d4-20020a170902b70400b001d00a9256adsi8993140pls.488.2023.12.12.22.57.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 22:57:22 -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=dIc6mod4; 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 EFD1481EA5F0; Tue, 12 Dec 2023 22:57:19 -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 S233151AbjLMG5F (ORCPT + 99 others); Wed, 13 Dec 2023 01:57:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59048 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232875AbjLMG5E (ORCPT ); Wed, 13 Dec 2023 01:57:04 -0500 Received: from mail-pf1-x42b.google.com (mail-pf1-x42b.google.com [IPv6:2607:f8b0:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5002299; Tue, 12 Dec 2023 22:57:11 -0800 (PST) Received: by mail-pf1-x42b.google.com with SMTP id d2e1a72fcca58-6d099d316a8so2602273b3a.0; Tue, 12 Dec 2023 22:57:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702450631; x=1703055431; 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=IhkAtvgGaXDYadwgX0rvctwX2fGbm2rs7JZCU92GB5Q=; b=dIc6mod4azNygbMt3tNVcx6oNoRrq6AUBQEgDQtHMx2Sj6TWLLPASjOKKxXrNLP4YU Mj69vAOSjbDZEKrb9qZXL70YKOfleycYgVtKRfhk7DM7+AK/4ovi0XFZAzMxjqNnPDwP YZtOlhgL4YcN97A9GXM0w6zHk+hzzlUc2SUtt3aCdEwtOWrlsjUgdSMKgu/SMplOXEoI U8nQO0QBHHLv9i29Li2E2SbyXn/OkK4DxxAUfZJtqchAYvOtPXG/o81LgSkBMEZE4dnR PtVYSsyxNQpnGf18wHmX80sTH/OZ8aKyrUALxgz5eYU+b92kA46nuZLRsVcbPoEua5Nb xEbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702450631; x=1703055431; 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=IhkAtvgGaXDYadwgX0rvctwX2fGbm2rs7JZCU92GB5Q=; b=sBk5d9g3pczkGJ5bZl6fgNwxwI5CoOtXBzE94R6xApZQcCTTHNHCtDfblsD2XDg9ao WUMpZPP6wQvML/r6rlVMAJqx2PDFtHeHNWwDoNHn8QUkaKhehYAszJ1VBV+Woz+BXLP8 bIsJUyzWdlhw5/u4fi/LaGUSCiGmCt1oaMrn6ZGSZkQx/JwtqNyTAMxLuRyPLRiBmGKh HA8LmInAbt8RIGSWG+5HGhFNaSyf5X2aKn3Lrby+hX1HuCibHvheIzck8/0HzWBPGvn6 tEhqhaO05tJYnHw9pV/OjzRX/Ec0VmkQ401VhsVBcKUK3oudNSxvJyVRq2SBmKsa+qBw amhw== X-Gm-Message-State: AOJu0YypY3Uxe07zYavvonKANjl6E0HxLP70NfbzmjnJHEZY2UEICEZM dpZHTdVPsYstp71J8j2rrDE= X-Received: by 2002:a05:6a00:1d86:b0:6ce:448b:b8 with SMTP id z6-20020a056a001d8600b006ce448b00b8mr7458739pfw.65.1702450630622; Tue, 12 Dec 2023 22:57:10 -0800 (PST) Received: from google.com ([2620:15c:9d:2:96c1:256f:67e0:c0db]) by smtp.gmail.com with ESMTPSA id t19-20020a056a0021d300b006ce77ffcc75sm8280069pfj.165.2023.12.12.22.57.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 22:57:10 -0800 (PST) Date: Tue, 12 Dec 2023 22:57:07 -0800 From: Dmitry Torokhov To: Jeff LaBundy Cc: ye.xingchen@zte.com.cn, colin.i.king@gmail.com, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] Input: misc: use sysfs_emit() to instead of scnprintf() Message-ID: References: <202212011548387254492@zte.com.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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:20 -0800 (PST) On Thu, Dec 01, 2022 at 10:50:01AM -0600, Jeff LaBundy wrote: > Hi Ye, > > On Thu, Dec 01, 2022 at 03:48:38PM +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 > > --- > > drivers/input/misc/ims-pcu.c | 10 +++++----- > > drivers/input/misc/iqs269a.c | 18 +++++++++--------- Split the patch in 2 for each driver, adjusted to the latest code and applied. Thanks. -- Dmitry