lkml.org 
[lkml]   [2023]   [Aug]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2 1/3] iio: pressure: bmp280: Use uint8 to store chip ids
On Wed, Aug 23, 2023 at 05:58:05PM +0200, Angel Iglesias wrote:
> Represent the device id reg values using uint8 to optimize memory use.

This doesn't correspond to the code, in the code you used uint8_t.

...

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

While this will compile and even work properly in kernel we use uXX types,
here u8.

--
With Best Regards,
Andy Shevchenko


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