From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 D1C321F470D; Mon, 21 Oct 2024 10:44:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729507481; cv=none; b=PBTQboM4ZyaXRiKqcpM3jjSlKfx5FNUbgumXBOK8bvZWk0abu+wuQ+Ml5vA+hq9V7DxlS6f1G0qkb7A4bIZFFdRD/SNLrXXzSu/0mSyaUkabsSfnl9wpGBv5sh+nUbWfTYoGjEptmAQPwQ1r42RqaWDd1B49dL2Cdk62D5Rso8c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729507481; c=relaxed/simple; bh=BU2uuPoEsgcHN1EdduebTemGUGf8LzbjiH6/u6nlMec=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=tmEQdcffIx1mMZe+CQ9pAMXACUkRmuwFSbVO6jgigX7kIWwl64NJHDA0s8f13x59IosfOoQ9gwi5Y8LstlExJUU2DzwZVu1YUh2v1R7g4KS0d9GI1PCgM8govZgzKpd/guiquLwbiJlCZNbbTgpZIl4KoKPpQxmiQk1tnWjuoW4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=c/Y9JFBk; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="c/Y9JFBk" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0BC66C4CEC3; Mon, 21 Oct 2024 10:44:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1729507481; bh=BU2uuPoEsgcHN1EdduebTemGUGf8LzbjiH6/u6nlMec=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=c/Y9JFBkhHXEbW0qEC88UCIr0gNyLYMpLbyJo9EdltI4vHkZUpnFttm0t/ZXKl6B2 mEwDCmYmo5XFezb6Rw2r0XTADkQMsgb7foO/ffbhhNZu4LA1K7BloQLjd+CvRaCHBs 6t6Di9OSmU/gpKWRUjlkY4k6jM9VuFwb7mPpoGRc= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Javier Carrasco , Jonathan Cameron Subject: [PATCH 6.1 60/91] iio: light: veml6030: fix ALS sensor resolution Date: Mon, 21 Oct 2024 12:25:14 +0200 Message-ID: <20241021102252.160112781@linuxfoundation.org> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241021102249.791942892@linuxfoundation.org> References: <20241021102249.791942892@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.1-stable review patch. If anyone has any objections, please let me know. ------------------ From: Javier Carrasco commit c9e9746f275c45108f2b0633a4855d65d9ae0736 upstream. The driver still uses the sensor resolution provided in the datasheet until Rev. 1.6, 28-Apr-2022, which was updated with Rev 1.7, 28-Nov-2023. The original ambient light resolution has been updated from 0.0036 lx/ct to 0.0042 lx/ct, which is the value that can be found in the current device datasheet. Update the default resolution for IT = 100 ms and GAIN = 1/8 from the original 4608 mlux/cnt to the current value from the "Resolution and maximum detection range" table (Application Note 84367, page 5), 5376 mlux/cnt. Cc: Fixes: 7b779f573c48 ("iio: light: add driver for veml6030 ambient light sensor") Signed-off-by: Javier Carrasco Link: https://patch.msgid.link/20240923-veml6035-v2-1-58c72a0df31c@gmail.com Signed-off-by: Jonathan Cameron Signed-off-by: Greg Kroah-Hartman --- drivers/iio/light/veml6030.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/iio/light/veml6030.c +++ b/drivers/iio/light/veml6030.c @@ -780,7 +780,7 @@ static int veml6030_hw_init(struct iio_d /* Cache currently active measurement parameters */ data->cur_gain = 3; - data->cur_resolution = 4608; + data->cur_resolution = 5376; data->cur_integration_time = 3; return ret;