Set the ops structure as static. The structure is not accessible from outside of this driver.
Reviewed-by: Heiko Schocher <[email protected]> Signed-off-by: Marek Vasut <[email protected]> --- Cc: Heiko Schocher <[email protected]> Cc: Maarten Brock <[email protected]> Cc: Tom Rini <[email protected]> Cc: [email protected] --- V2: - Add RB from Heiko - Drop the const part, this conflicts with ACPI_OPS_PTR macro --- drivers/i2c/designware_i2c_pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/designware_i2c_pci.c b/drivers/i2c/designware_i2c_pci.c index c21c412231c..ad4122c2abd 100644 --- a/drivers/i2c/designware_i2c_pci.c +++ b/drivers/i2c/designware_i2c_pci.c @@ -168,7 +168,7 @@ static int dw_i2c_acpi_fill_ssdt(const struct udevice *dev, return 0; } -struct acpi_ops dw_i2c_acpi_ops = { +static struct acpi_ops dw_i2c_acpi_ops = { .fill_ssdt = dw_i2c_acpi_fill_ssdt, }; -- 2.53.0

