drivers/i2c: Constify struct device * param to i2c fill ssdt callback

This change makes the struct device * param to callback function
called by i2c_generic_fill_ssdt() as const. This is in preparation to
make struct device * param to fill_ssdt as const.

Change-Id: I7556b672a7b0172ded44747af394f5b32b6209aa
Signed-off-by: Furquan Shaikh <furquan@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/40707
Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Furquan Shaikh
2020-04-24 21:44:27 -07:00
parent 4fc17b47a4
commit 8220c4b778
3 changed files with 3 additions and 3 deletions

View File

@@ -77,7 +77,7 @@ struct drivers_i2c_generic_config {
* config: Pointer to drivers_i2c_generic_config structure
*/
void i2c_generic_fill_ssdt(struct device *dev,
void (*callback)(struct device *dev),
void (*callback)(const struct device *dev),
struct drivers_i2c_generic_config *config);
#endif /* __I2C_GENERIC_CHIP_H__ */