summaryrefslogtreecommitdiff
path: root/board/hatch
diff options
context:
space:
mode:
authorNick Vaccaro <nvaccaro@google.com>2019-10-23 20:12:13 -0700
committerCommit Bot <commit-bot@chromium.org>2019-12-12 11:27:47 +0000
commit0748d4efa8951e2d61e9a13e7f7526aab8086c9c (patch)
treeb3c695a88580685e11a5c6e1bf99f22b3248d11b /board/hatch
parentc7bf2e272c4a2176217198b2afd9d5f9afdfc5c2 (diff)
downloadchrome-ec-0748d4efa8951e2d61e9a13e7f7526aab8086c9c.tar.gz
drivers/tcs3400: update fields for new irt scale factor
A new irt scaling factor was added to the tcs3400 driver to further improve the sensor CCT accuracy, requiring a structure definition to change. This change fixes existing boards that use the tcs3400 to use this new structure definition. Boards modified include flapjack, hatch, kohaku, kukui, and stryke. BUG=b:143246741 BRANCH=master TEST=execute "make -j BOARD=<boardname>" for kukui, kohaku, flapjack, and hatch and make sure they build without error. Cq-Depend: chromium:1879188 Change-Id: Icad96877b5cd9966e927e4dd150335c988725f0c Signed-off-by: Nick Vaccaro <nvaccaro@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1879189 Tested-by: Mengqi Guo <mqg@chromium.org> Reviewed-by: Mengqi Guo <mqg@chromium.org> Reviewed-by: Scott Collyer <scollyer@chromium.org>
Diffstat (limited to 'board/hatch')
-rw-r--r--board/hatch/board.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/board/hatch/board.c b/board/hatch/board.c
index bf243c4ee8..978a0feef1 100644
--- a/board/hatch/board.c
+++ b/board/hatch/board.c
@@ -192,27 +192,28 @@ static struct als_drv_data_t g_tcs3400_data = {
};
static struct tcs3400_rgb_drv_data_t g_tcs3400_rgb_data = {
- .rgb_cal[X] = {
+ .calibration.rgb_cal[X] = {
.offset = 0,
.scale = {
.k_channel_scale = ALS_CHANNEL_SCALE(1.0), /* kr */
.cover_scale = ALS_CHANNEL_SCALE(1.0)
},
},
- .rgb_cal[Y] = {
+ .calibration.rgb_cal[Y] = {
.offset = 0,
.scale = {
.k_channel_scale = ALS_CHANNEL_SCALE(1.0), /* kg */
.cover_scale = ALS_CHANNEL_SCALE(1.0)
},
},
- .rgb_cal[Z] = {
+ .calibration.rgb_cal[Z] = {
.offset = 0,
.scale = {
.k_channel_scale = ALS_CHANNEL_SCALE(1.0), /* kb */
.cover_scale = ALS_CHANNEL_SCALE(1.0)
},
},
+ .calibration.irt = INT_TO_FP(1),
.saturation.again = TCS_DEFAULT_AGAIN,
.saturation.atime = TCS_DEFAULT_ATIME,
};