staging: sm750fb: fix casing style on getDeviceID
PATCH 1/1 staging: sm750fb: fix casing style on getDeviceID
Fixes camel casing for getDeviceID function. This includes an update to the internal function variable 'deviceID' as it's relevant, needs updating, and is clearly scoped to the small function.
Signed-off-by Justin Cromer <[email protected]>
---
First patch for me, so I chose a checkpatch.pl issue to get comfortable with the workflow. Any and all nits welcome.
Verified my change by recompiling and loading the module in question. Additionaly, checkpatch.pl reports two fewer errors.
drivers/staging/sm750fb/ddk750_dvi.c | 2 +- drivers/staging/sm750fb/ddk750_sii164.c | 12 ++++++------ drivers/staging/sm750fb/ddk750_sii164.h | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-)
drivers/staging/sm750fb/ddk750_dvi.c +1 -1
@@ -16,7 +16,7 @@ static struct dvi_ctrl_device dcft_supported_dvi_controller[] = { { .init = sii164_init_chip, .get_vendor_id = sii164_get_vendor_id, - .get_device_id = sii164GetDeviceID, + .get_device_id = sii164_get_device_id, #ifdef SII164_FULL_FUNCTIONS .reset_chip = sii164ResetChip, .get_chip_string = sii164GetChipString,
drivers/staging/sm750fb/ddk750_sii164.c +6 -6
@@ -48,22 +48,22 @@ unsigned short sii164_get_vendor_id(void) }/* -* sii164GetDeviceID +* sii164_get_device_id * This function gets the device ID of the DVI controller chip. * * Output: * Device ID */ -unsigned short sii164GetDeviceID (void ) +unsigned short sii164_get_device_id (void ) { -unsigned short deviceID; +unsigned short device_id; - deviceID = ((unsigned short )i2cReadReg (SII164_I2C_ADDRESS , + device_id = ((unsigned short )i2cReadReg (SII164_I2C_ADDRESS ,SII164_DEVICE_ID_HIGH ) <<8 ) | (unsigned short )i2cReadReg (SII164_I2C_ADDRESS ,SII164_DEVICE_ID_LOW ); -return deviceID; +return device_id; }/*
@@ -141,7 +141,7 @@ long sii164_init_chip(unsigned char edge_select,/* Check if SII164 Chip exists */ if ((sii164_get_vendor_id () ==SII164_VENDOR_ID ) && - (sii164GetDeviceID () ==SII164_DEVICE_ID )) { + (sii164_get_device_id () ==SII164_DEVICE_ID )) {/* * Initialize SII164 controller chip. */
drivers/staging/sm750fb/ddk750_sii164.h +1 -1
@@ -28,7 +28,7 @@ long sii164_init_chip(unsigned char edgeSelect, unsigned char pllFilterValue);unsigned short sii164_get_vendor_id (void ); -unsigned short sii164GetDeviceID (void ); +unsigned short sii164_get_device_id (void );#ifdef SII164_FULL_FUNCTIONS void sii164ResetChip (void );
Signature · 1 line
2.49.0