diff --git a/include/linux/property.h b/include/linux/property.h index ac8a1ebc4c1b5cbf419e4344f2053a480de56081..1a12364050d8bf0c3fafa195af4e6c904ce471e3 100644 --- a/include/linux/property.h +++ b/include/linux/property.h @@ -258,7 +258,7 @@ struct property_entry { #define PROPERTY_ENTRY_STRING(_name_, _val_) \ (struct property_entry) { \ .name = _name_, \ - .length = sizeof(_val_), \ + .length = sizeof(const char *), \ .type = DEV_PROP_STRING, \ { .value = { .str = _val_ } }, \ }