Messages in this thread | | | Date | Wed, 06 Sep 2023 09:04:01 +0200 | From | Michael Walle <> | Subject | Re: [PATCH v2 12/41] mtd: spi-nor: introduce (temporary) INFO0() |
| |
Am 2023-09-06 08:04, schrieb Tudor Ambarus: > On 8/22/23 08:09, Michael Walle wrote: >> The id will be converted to an own structure. To differentiate between >> flashes with and without IDs, introduce a temporary macro INFO0() and > > why do we need to differentiate between them?
The INFOn() macros will have a pointer to the SNOR_ID() whereas INFO0() doesn't have a pointer. Before, it didn't really matter because we tested for the id_len, but now we'll test the pointer (see next patch).
-michael
| |