From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-184.mta0.migadu.com (out-184.mta0.migadu.com [91.218.175.184]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 52BFE2FA641 for ; Thu, 17 Jul 2025 16:11:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.184 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752768719; cv=none; b=PMkrxjOrRGmRPxrkZAjQ5IS/Vu/yMgEmUkHjTIgAILMugxH6W/JHeG71gC7rEUy8hcfTzKK2OPFxZSpXG6GwBfEaFDtKiSgJvCRn4xnkYVWKziBLfKWrUuOk/iXGmiLiDTsHO+BZEACbR9mB9UhIlBlXa3bPQrgvHu5gI/b/P3s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752768719; c=relaxed/simple; bh=8E/LASC1MAbiIyjg+yp4CG80+zNjBRUFj8dQa91jOeE=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=KJ7bWv9F1XJcXzzKUTb7PykZtl7wS3CAShEQIOkppdi0ll7x0jpnAE2HNesz/1RJCrROZeg+cGnSSOJU2RFEcFohOhB3wJpMIxAmuRuVcE8xQrBNl14WAXdujpELytXYUqXkh8j4LY30OvTx4Anv7DAZ9OhQwwET9DBGfHIHFB0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=gUZ5mLlO; arc=none smtp.client-ip=91.218.175.184 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="gUZ5mLlO" Message-ID: <3d548f70-46d8-421e-82b2-04ba60d19a29@linux.dev> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1752768715; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=T8hlfLA2Ari9Q2cTq4M3Jz4AlI/LLzLa+w5HAU7rc+4=; b=gUZ5mLlOGAlTPRtLDYLYusGexWrXrR6+bEjZ2v+zo9WZ5YkOzq3f6LofB2TEQ/ONv5VU2d VAWNSlYirBymMyQAL1vNzrA7TWb1Q83I1RQ5UXJXAAahl114YuKbZYHgIg1t/ihZFbXDt0 +r1Kp1ME5gY88CCM4ndz8FgEEY9wPSE= Date: Thu, 17 Jul 2025 12:11:52 -0400 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Subject: Re: [PATCH 6/7] hwmon: iio: Add min/max support To: Andy Shevchenko Cc: Jonathan Cameron , Jean Delvare , Guenter Roeck , linux-iio@vger.kernel.org, linux-hwmon@vger.kernel.org, Andy Shevchenko , =?UTF-8?Q?Nuno_S=C3=A1?= , linux-kernel@vger.kernel.org, David Lechner References: <20250715012023.2050178-1-sean.anderson@linux.dev> <20250715012023.2050178-7-sean.anderson@linux.dev> <05fbc6c9-0b6a-42bd-8940-242c80a79b7f@linux.dev> Content-Language: en-US X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Sean Anderson In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_OUT On 7/16/25 06:01, Andy Shevchenko wrote: > On Tue, Jul 15, 2025 at 12:05:15PM -0400, Sean Anderson wrote: >> On 7/15/25 04:41, Andy Shevchenko wrote: >> > On Mon, Jul 14, 2025 at 09:20:22PM -0400, Sean Anderson wrote: > > ... > >> >> + return sprintf(buf, "%d\n", result); >> > >> > Mustn't be sysfs_emit() ? >> >> It doesn't matter in this case (as %d can never emit more >> than 20ish characters), but that works too. > > Have you read the documentation? It uses word 'must'... > Documentation for what? sysfs_emit just says it's aware of the PAGE_SIZE buffer. Nothing about that it "must" be used. --Sean