Re: [PATCH 02/13] drm/ast: Test if I2C support has been initialized

2020-07-28 Thread Sam Ravnborg
Hi Thomas. On Tue, Jul 28, 2020 at 09:44:14AM +0200, Thomas Zimmermann wrote: > The ast driver is supposed to work without I2C support. This is > tested by looking at the connector's i2c field being non-NULL. > > After embedding the I2C structure in the connector, the i2c field > will not be a po

[PATCH 02/13] drm/ast: Test if I2C support has been initialized

2020-07-28 Thread Thomas Zimmermann
The ast driver is supposed to work without I2C support. This is tested by looking at the connector's i2c field being non-NULL. After embedding the I2C structure in the connector, the i2c field will not be a pointer. So change the test to look at the dev field in struct ast_i2c_chan. ast_get_modes