On Thu, Sep 19, 2024 at 11:29:10PM +0530, Shyam Sundar S K wrote: > Implement the i2c_algorithm operations to enable support for AMD ASF > (Alert Standard Format) with SMBus. This enhancement includes: > > - Adding functionality to identify and select the supported ASF functions. > - Implementing mechanisms for registering and deregistering I2C slave > devices. > - Providing support for data transfer operations over ASF. > > Additionally, include a 'select' Kconfig entry as the current patch > utilizes reg_slave and unreg_slave callbacks, which are controlled by > IS_ENABLED(CONFIG_I2C_SLAVE). utilizes .reg_slave() and .unreg_slave() callbacks, which are controlled by CONFIG_I2C_SLAVE. ... > +static u32 amd_asf_func(struct i2c_adapter *adapter) > +{ > + return I2C_FUNC_SMBUS_BLOCK_DATA | I2C_FUNC_SMBUS_BYTE | > + I2C_FUNC_SLAVE | I2C_FUNC_SMBUS_WRITE_BLOCK_DATA | I2C_FUNC_SMBUS_PEC; Second line is not indented properly. Also I would suggest to use more logical grouping and line wrap. return I2C_FUNC_SMBUS_WRITE_BLOCK_DATA | I2C_FUNC_SMBUS_BLOCK_DATA | I2C_FUNC_SMBUS_BYTE | I2C_FUNC_SMBUS_PEC | I2C_FUNC_SLAVE; > +} ... With the above changes being applied, Reviewed-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx> -- With Best Regards, Andy Shevchenko