drivers: input: touchscreen: fts_521: Fix strict-prototypes error
Change-Id: Iddba34c831a691f4b6f5e3bb8a2ddf178f89f965
This commit is contained in:
committed by
Sebastiano Barezzi
parent
14e1eed411
commit
9aa174fc46
@@ -101,7 +101,7 @@ int changeSAD(u8 sad)
|
|||||||
* Retrieve the pointer to the device struct of the IC
|
* Retrieve the pointer to the device struct of the IC
|
||||||
* @return a the device struct pointer if client was previously set or NULL in all the other cases
|
* @return a the device struct pointer if client was previously set or NULL in all the other cases
|
||||||
*/
|
*/
|
||||||
struct device *getDev()
|
struct device *getDev(void)
|
||||||
{
|
{
|
||||||
if (client != NULL)
|
if (client != NULL)
|
||||||
return &(getClient()->dev);
|
return &(getClient()->dev);
|
||||||
@@ -114,7 +114,7 @@ struct device *getDev()
|
|||||||
* Retrieve the pointer of the i2c_client struct representing the IC as i2c slave
|
* Retrieve the pointer of the i2c_client struct representing the IC as i2c slave
|
||||||
* @return client if it was previously set or NULL in all the other cases
|
* @return client if it was previously set or NULL in all the other cases
|
||||||
*/
|
*/
|
||||||
struct i2c_client *getClient()
|
struct i2c_client *getClient(void)
|
||||||
{
|
{
|
||||||
if (client != NULL)
|
if (client != NULL)
|
||||||
return (struct i2c_client *)client;
|
return (struct i2c_client *)client;
|
||||||
@@ -126,7 +126,7 @@ struct i2c_client *getClient()
|
|||||||
* Retrieve the pointer of the spi_device struct representing the IC as spi slave
|
* Retrieve the pointer of the spi_device struct representing the IC as spi slave
|
||||||
* @return client if it was previously set or NULL in all the other cases
|
* @return client if it was previously set or NULL in all the other cases
|
||||||
*/
|
*/
|
||||||
struct spi_device *getClient()
|
struct spi_device *getClient(void)
|
||||||
{
|
{
|
||||||
if (client != NULL)
|
if (client != NULL)
|
||||||
return (struct spi_device *)client;
|
return (struct spi_device *)client;
|
||||||
|
|||||||
Reference in New Issue
Block a user