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 6E8BB1EB9E1; Mon, 21 Oct 2024 10:37:38 +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=1729507058; cv=none; b=AsklzRHUi0Wl4Nem7CHOxWBWfzESoZSJctPTGqkDnduJOBBfMTi5Piy/AtJeIj+SAo4wOCkSbfpcDLOHyp+DXf3Gf96ntC2hSHfTqdgQJxVkyngeTRRxzJuk6noNHfCObQJudQ8CRIvaM5m4iKK2l7Z0JaK7VoRhcaRarEEXDno= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729507058; c=relaxed/simple; bh=UlvQBbMIq6nMSZThiLX1c79aHRn9nRR5B9R9xBhqZ9o=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ggW1X23K4gTH8UUn2r4dVemXI0dLQmQL6ab9pjq5TL0mYQAcm8DTn/D020CwuEvA30GblM8tPW5N0XpFjspp0gkgYxNB3kT+HqHL4dEcZ0s0lbV7K4nHv6jJisj/dJDMeFJuDLQi+XbI5ezSzqhKVePGj/CdAVxlj7cMBruXk5Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=pn3j8lyE; 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="pn3j8lyE" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E2860C4CEC3; Mon, 21 Oct 2024 10:37:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1729507058; bh=UlvQBbMIq6nMSZThiLX1c79aHRn9nRR5B9R9xBhqZ9o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pn3j8lyE1icruhBTA7V0B8ATuxGP8n1lZ/qYggSPfFXS+1jYQSNxHqxE+SdW1F96K 5R2//sTVVgp3epTd67OVkvNEjBaMYKGQZINKmGfvEck5g/f5WE3dSXL+q2DgtKNhIE PEf614VJR2kHFd+MedHMPejJ3ee+9XcqFtadW9Bw= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Javier Carrasco , Jonathan Cameron Subject: [PATCH 6.6 075/124] iio: light: veml6030: fix ALS sensor resolution Date: Mon, 21 Oct 2024 12:24:39 +0200 Message-ID: <20241021102259.633860400@linuxfoundation.org> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241021102256.706334758@linuxfoundation.org> References: <20241021102256.706334758@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.6-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;