From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=185.171.202.116 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1793280867; b=rbYkqTO7p/5yfGpeg/iIsi8Cx9dVjcU9/om21Sy8xsXXczUqledvTgqIJqEobbRpWO9f fy0j7G6ifZu6avFNMIYijBIQAzWHxJa6LDtVBhOHHI3kFaXxGDwaH55rsGqAqhYF0Ds5H vH01S5QVBluog+wi5moN+vAUl4jFIxzfq49a5rh7AANQqRBWmWU1X4Wol+dzn+ID7wzOq ZNSB+pxTrXqy/h7qeuPUJIiIagrGS6VEG9e8wDwZG7SbyeE3ft+jUkgrNhjgkfM2kD7uO Nz7kpQ3VzT1fRGUYuD9eeYwotrE5hpAO6jXtGS9Bv7wUCCYZIhYwTW6QOo8unmSR81g== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793280867; h=DMARC-Filter:Received:Received:Received:DKIM-Signature:From:To:Cc: Subject:Date:Message-ID:X-Mailer:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding:X-Last-TLS-Session-Version; bh=3BG7e2ZIZ3lcaZgbDCSylnzGgJB1uDgJ+stIiLqGSuQ=; b=AR2qWmlDzM1E9bMq1iWXvC8DxMbI6UO0BAESXu91OnLlFDprM3cdJTnZ6mgPn3/U9aEu gVhnkf8hz8yhQpGn4ydvxaM9sH30mSg9HB865+IYmaQMI5FJ1r/dhhNpDJGVPRbFxNCl+ JclriAzgbtIKVzoGUTuALuy4pOOy3RoqgNlSc7zOD3PBa7NBNKEqDyMfnCZ5AkeS2GWbf 2A8M3rL+GxYhHowescgxzLMjU5jD0n5qJRH3xrWWNkrj8FZPwK+2+V/KSHbsJqvt0KXP1 X2ieYsG0nAm2SSkwSnTtZJ+Utms0d38LvKrZscSLDRlXoYrBe4FQO7dHAS6G2qtcXpA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass header.d=bootlin.com header.i=@bootlin.com header.a=rsa-sha256 header.s=dkim header.b=IdfRae0K; arc=none smtp.remote-ip=185.171.202.116 Received: from smtpout-04.galae.net (smtpout-04.galae.net [185.171.202.116]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EB642606A31E for ; Thu, 29 Oct 2026 13:34:25 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org EB642606A31E Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=bootlin.com header.i=@bootlin.com header.a=rsa-sha256 header.s=dkim header.b=IdfRae0K Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-04.galae.net (Postfix) with ESMTPS id A51B0C49F44 for ; Thu, 29 Oct 2026 13:35:26 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 4B6F060360; Thu, 29 Oct 2026 13:34:24 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 789BE1032909B; Thu, 29 Oct 2026 14:34:19 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1793280859; h=from:subject:date:message-id:to:cc:mime-version: content-transfer-encoding:in-reply-to:references; bh=3BG7e2ZIZ3lcaZgbDCSylnzGgJB1uDgJ+stIiLqGSuQ=; b=IdfRae0Kwp1wxoIpISENWn8bUlR9/5WqBZg/mip1q2eNA26Eb2YJZbl4pm3H20sPtlIUWN c2pazzMgP/ZUFNBEs9GNwh2A5ZQJIC5GdLXlIbNkLkBQ+H4mSVwQ5A5phEeoS5NPYJG23Q soJahwfPTR6kFkFzsyK9p+HiBD3/aawdUdALkG+nPiqli0oofgnSdtHz91zgwSswYIb7ID 6noF4x7eyn/H9FPnyOhr2tqy+YMSNzQO2tY1F9VmOAJ28UC0mmR30IcKwxsuXq7GoLcDOf g4j7E9dUZ7vKXkqjHI7S3kWA7bczDl2nxbs4x7e7XYGhSJ2sJGHHrMYPLopivg== From: alexandre.belloni@bootlin.com To: Alexandre Belloni Cc: linux-rtc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 02/12] rtc: pcf2127: use sysfs_emit() instead of sprintf() Date: Thu, 29 Oct 2026 14:23:25 +0100 Message-ID: <20261029132339.925021-2-alexandre.belloni@bootlin.com> X-Mailer: git-send-email 2.56.0 In-Reply-To: <20261029132339.925021-1-alexandre.belloni@bootlin.com> References: <20261029132339.925021-1-alexandre.belloni@bootlin.com> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Last-TLS-Session-Version: TLSv1.3 From: Alexandre Belloni Use sysfs_emit() instead of sprintf() in the sysfs show callback (timestamp_show) to conform to the recommended sysfs attribute formatting guidelines in Documentation/filesystems/sysfs.rst. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-pcf2127.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/rtc/rtc-pcf2127.c b/drivers/rtc/rtc-pcf2127.c index ff2023908f5a..49542cc53411 100644 --- a/drivers/rtc/rtc-pcf2127.c +++ b/drivers/rtc/rtc-pcf2127.c @@ -972,7 +972,7 @@ static ssize_t timestamp_show(struct device *dev, if (ret) return ret; } - return sprintf(buf, "%llu\n", (unsigned long long)ts); + return sysfs_emit(buf, "%llu\n", (unsigned long long)ts); } static ssize_t timestamp0_show(struct device *dev, -- 2.56.0