Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amd/amdgpu/smu_v11_0_i2c: Provide descriptions for 'control' and 'data' params

Fixes the following W=1 kernel build warning(s):

drivers/gpu/drm/amd/amdgpu/smu_v11_0_i2c.c:225: warning: Function parameter or member 'control' not described in 'smu_v11_0_i2c_transmit'
drivers/gpu/drm/amd/amdgpu/smu_v11_0_i2c.c:325: warning: Function parameter or member 'control' not described in 'smu_v11_0_i2c_receive'
drivers/gpu/drm/amd/amdgpu/smu_v11_0_i2c.c:325: warning: Function parameter or member 'data' not described in 'smu_v11_0_i2c_receive'

Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: "Christian König" <christian.koenig@amd.com>
Cc: David Airlie <airlied@linux.ie>
Cc: Daniel Vetter <daniel@ffwll.ch>
Cc: amd-gfx@lists.freedesktop.org
Cc: dri-devel@lists.freedesktop.org
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Lee Jones and committed by
Alex Deucher
048df826 0507a617

+3
+3
drivers/gpu/drm/amd/amdgpu/smu_v11_0_i2c.c
··· 212 212 /** 213 213 * smu_v11_0_i2c_transmit - Send a block of data over the I2C bus to a slave device. 214 214 * 215 + * @control: I2C adapter reference 215 216 * @address: The I2C address of the slave device. 216 217 * @data: The data to transmit over the bus. 217 218 * @numbytes: The amount of data to transmit. ··· 314 313 /** 315 314 * smu_v11_0_i2c_receive - Receive a block of data over the I2C bus from a slave device. 316 315 * 316 + * @control: I2C adapter reference 317 317 * @address: The I2C address of the slave device. 318 + * @data: Placeholder to store received data. 318 319 * @numbytes: The amount of data to transmit. 319 320 * @i2c_flag: Flags for transmission 320 321 *