lkml.org 
[lkml]   [2023]   [Aug]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH v2 1/3] iio: pressure: bmp280: Use uint8 to store chip ids
Date
Represent the device id reg values using uint8 to optimize memory use.

Signed-off-by: Angel Iglesias <ang.iglesiasg@gmail.com>

diff --git a/drivers/iio/pressure/bmp280.h b/drivers/iio/pressure/bmp280.h
index 5c0563ce7572..ff72e82f55ad 100644
--- a/drivers/iio/pressure/bmp280.h
+++ b/drivers/iio/pressure/bmp280.h
@@ -418,7 +418,7 @@ struct bmp280_data {

struct bmp280_chip_info {
unsigned int id_reg;
- const unsigned int chip_id;
+ uint8_t chip_id;

const struct regmap_config *regmap_config;

--
2.42.0
\
 
 \ /
  Last update: 2023-08-23 18:00    [W:1.820 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site