]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - include/linux/property.h
device property: Fix the length used in PROPERTY_ENTRY_STRING()
[linux.git] / include / linux / property.h
index 3789ec755fb6c98f5b0a2af5433db2544123880b..65d3420dd5d18bc5ca42fe16688baeac4a484df6 100644 (file)
@@ -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_ } },                  \
 }