Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 5C3333C414F for ; Wed, 19 Aug 2026 08:26:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787127991; cv=none; b=gQtdhrebHR6sRhdG5HHgNaelHm9hBDPBYhhirptlov2o7l/xjcfPep6SUERJIjK2usD6/QwFVlGVfQWBgMI4ogm6WhXK+De0y6o7phscQY1U9TA2DtsZ752qdHtZCsJ8nEPya58/Lz9I9W81MnBN9QWdo/Lt4AeIRsYlKwYN10k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787127991; c=relaxed/simple; bh=6PuILme6jeVnAnymkq4EWyD5yH/tLaK386vH8vVtDas=; h=Subject:To:From:Date:Message-ID:MIME-Version:Content-Type; b=RQkQGJG62b7apgzz5JLA1ZokEo5YSXTZDU2BHYzDE7vc2avzIivV+GhGhenE+7DDHB9dIwm6ft3u0mYp9wxDbFn48fvhofCYzLYBfypvO58tRvOhpr97epYyqzS85F0+j8n5+A5w8i6jtjyuqalUxHeYcBm/xBO/dxPkq6Ar4ls= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Q3J7EW89; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Q3J7EW89" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C4E0A1F000E9; Wed, 19 Aug 2026 08:26:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1787127990; bh=nWYA3SVn1fZfsmJz56BsjYfUaq6zw8V0jEtGpQQ54OU=; h=Subject:To:From:Date; b=Q3J7EW89HZY3bNmi5opWh4X43XiyiEEMOupViYWKxMLglb+Yqmnq15e7Fb879eiRL AKGCDOtE+fr0F9ltW+A42In8XfyqWSAeBTn09o5pD/3rB1X2vEcP2z29/kg+eSPHZh DrObcq/t54ShOE0rI0mixeVCfV4YLhNuk1G077qg= Subject: patch "iio: light: cm32181: return zero after writing calibscale" added to char-misc-next To: giorgi@tchankvetadze.com,Stable@vger.kernel.org,jonathan.cameron@oss.qualcomm.com,joshua.crofts1@gmail.com From: Date: Wed, 19 Aug 2026 09:49:24 +0200 Message-ID: <2026081923-spleen-paralysis-751b@gregkh> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit This is a note to let you know that I've just added the patch titled iio: light: cm32181: return zero after writing calibscale to my char-misc git tree which can be found at git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git in the char-misc-next branch. The patch will show up in the next release of the linux-next tree (usually sometime within the next 24 hours during the week.) The patch will also be merged in the next major kernel release during the merge window. If you have any questions about this process, please let me know. From 8756acd30919a3e9f547ea4a1d4b7f7895f4d340 Mon Sep 17 00:00:00 2001 From: Giorgi Tchankvetadze Date: Fri, 31 Jul 2026 17:20:48 +0400 Subject: iio: light: cm32181: return zero after writing calibscale The write_raw callback is documented to return 0 on success or a negative error code. However, the IIO_CHAN_INFO_CALIBSCALE case returns 'val' (the user-supplied value) instead of 0. Fix it by returning 0 on success, matching the behavior of other calibscale implementations in the subsystem. Fixes: 971672c0b3cc ("iio: add Capella CM32181 ambient light sensor driver.") Signed-off-by: Giorgi Tchankvetadze Reviewed-by: Joshua Crofts Cc: Signed-off-by: Jonathan Cameron --- drivers/iio/light/cm32181.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/light/cm32181.c b/drivers/iio/light/cm32181.c index 2590fc8fd154..b32a94028f09 100644 --- a/drivers/iio/light/cm32181.c +++ b/drivers/iio/light/cm32181.c @@ -368,7 +368,7 @@ static int cm32181_write_raw(struct iio_dev *indio_dev, switch (mask) { case IIO_CHAN_INFO_CALIBSCALE: cm32181->calibscale = val; - return val; + return 0; case IIO_CHAN_INFO_INT_TIME: ret = cm32181_write_als_it(cm32181, val2); return ret; -- 2.55.0