[PATCH rtems-libbsd] regulator: Disable FDT parts for non-FDT targets

Christian Mauderer christian.mauderer at embedded-brains.de
Fri Apr 17 12:16:47 UTC 2020


On 17/04/2020 14:15, Sebastian Huber wrote:
> 
> On 17/04/2020 14:03, Christian Mauderer wrote:
>> just noted that the logic isn't entirely correct: Should it be the
>> following?
>>
>>    #if (defined(__rtems__) && defined(FDT)) || !defined(__rtems__)
>>
>> The conditionals with some second define are always a bit tricky in
>> libbsd.
> 
> What about
> 
> #if !defined(__rtems__) || defined(FDT)
> 
> ?
> 

Sounds more correct. I'll try it and send a second version.

-- 
--------------------------------------------
embedded brains GmbH
Herr Christian Mauderer
Dornierstr. 4
D-82178 Puchheim
Germany
email: christian.mauderer at embedded-brains.de
Phone: +49-89-18 94 741 - 18
Fax:   +49-89-18 94 741 - 08
PGP: Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.


More information about the devel mailing list