Codebase list ddcci-driver-linux / 2ea7362
Static assertions to ensure minimum neccessary string array sizes in `struct ddcci_device` Christoph Grenz 2 years ago
1 changed file(s) with 7 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
4242
4343 struct bus_type ddcci_bus_type;
4444 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);
4552
4653 /* Internal per-i2c-client driver data */
4754 struct ddcci_bus_drv_data {