Static assertions to ensure minimum neccessary string array sizes in `struct ddcci_device`
Christoph Grenz
2 years ago
42 | 42 | |
43 | 43 | struct bus_type ddcci_bus_type; |
44 | 44 | EXPORT_SYMBOL_GPL(ddcci_bus_type); |
45 | ||
46 | /* Assert neccessary string array sizes */ | |
47 | static_assert(FIELD_SIZEOF(struct ddcci_device, prot) > 8); | |
48 | static_assert(FIELD_SIZEOF(struct ddcci_device, type) > 8); | |
49 | static_assert(FIELD_SIZEOF(struct ddcci_device, model) > 8); | |
50 | static_assert(FIELD_SIZEOF(struct ddcci_device, vendor) > 8); | |
51 | static_assert(FIELD_SIZEOF(struct ddcci_device, module) > 8); | |
45 | 52 | |
46 | 53 | /* Internal per-i2c-client driver data */ |
47 | 54 | struct ddcci_bus_drv_data { |