commit | 28897df295a04c518ccfb40a216fc69d487f433a | [log] [tgz] |
---|---|---|
author | Peter Bigot <peter.bigot@nordicsemi.no> | Fri Feb 12 08:04:09 2021 -0600 |
committer | Kumar Gala <kumar.gala@gmail.com> | Tue Feb 16 14:39:53 2021 -0600 |
tree | 6db90a1d73d922295ad2cc9fee5b1a7f9dd90282 | |
parent | 5b36a01a67dd705248496ef46999f39b43e02da9 [diff] |
device: use empty string as drvname when devicetree label is absent As we move to making the `label` property optional, we need to account for widespread use of `dev->name` in contexts where the pointer is not validated before it is dereferenced. Use an empty string instead of a null pointer when no label is provided. Signed-off-by: Peter Bigot <peter.bigot@nordicsemi.no>