* [PATCH 1/2 Resend] mfd: htc-i2cpld: Remove unused code
@ 2014-07-18 12:00 Sachin Kamat
2014-07-18 12:00 ` [PATCH Resend 2/2] mfd: tps65912-spi: Remove unused variable Sachin Kamat
2014-07-28 6:54 ` [PATCH 1/2 Resend] mfd: htc-i2cpld: Remove unused code Lee Jones
0 siblings, 2 replies; 4+ messages in thread
From: Sachin Kamat @ 2014-07-18 12:00 UTC (permalink / raw)
To: linux-kernel; +Cc: lee.jones, spk.linux, Cory Maccarrone
Removed code unused in this function.
Signed-off-by: Sachin Kamat <sachin.kamat@samsung.com>
Cc: Cory Maccarrone <darkstar6262@gmail.com>
---
Compile tested.
---
drivers/mfd/htc-i2cpld.c | 5 -----
1 file changed, 5 deletions(-)
diff --git a/drivers/mfd/htc-i2cpld.c b/drivers/mfd/htc-i2cpld.c
index d7b2a75aca3e..b44f0203983b 100644
--- a/drivers/mfd/htc-i2cpld.c
+++ b/drivers/mfd/htc-i2cpld.c
@@ -332,18 +332,13 @@ static int htcpld_setup_chip_irq(
int chip_index)
{
struct htcpld_data *htcpld;
- struct device *dev = &pdev->dev;
- struct htcpld_core_platform_data *pdata;
struct htcpld_chip *chip;
- struct htcpld_chip_platform_data *plat_chip_data;
unsigned int irq, irq_end;
int ret = 0;
/* Get the platform and driver data */
- pdata = dev_get_platdata(dev);
htcpld = platform_get_drvdata(pdev);
chip = &htcpld->chip[chip_index];
- plat_chip_data = &pdata->chip[chip_index];
/* Setup irq handlers */
irq_end = chip->irq_start + chip->nirqs;
--
1.7.9.5
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH Resend 2/2] mfd: tps65912-spi: Remove unused variable
2014-07-18 12:00 [PATCH 1/2 Resend] mfd: htc-i2cpld: Remove unused code Sachin Kamat
@ 2014-07-18 12:00 ` Sachin Kamat
2014-07-28 6:54 ` Lee Jones
2014-07-28 6:54 ` [PATCH 1/2 Resend] mfd: htc-i2cpld: Remove unused code Lee Jones
1 sibling, 1 reply; 4+ messages in thread
From: Sachin Kamat @ 2014-07-18 12:00 UTC (permalink / raw)
To: linux-kernel; +Cc: lee.jones, spk.linux
‘rx_buf’ is not used in this function.
Signed-off-by: Sachin Kamat <sachin.kamat@samsung.com>
---
drivers/mfd/tps65912-spi.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/mfd/tps65912-spi.c b/drivers/mfd/tps65912-spi.c
index 69a5178bf152..de60ad98bd9f 100644
--- a/drivers/mfd/tps65912-spi.c
+++ b/drivers/mfd/tps65912-spi.c
@@ -32,10 +32,9 @@ static int tps65912_spi_write(struct tps65912 *tps65912, u8 addr,
unsigned long spi_data = 1 << 23 | addr << 15 | *data;
struct spi_transfer xfer;
struct spi_message msg;
- u32 tx_buf, rx_buf;
+ u32 tx_buf;
tx_buf = spi_data;
- rx_buf = 0;
xfer.tx_buf = &tx_buf;
xfer.rx_buf = NULL;
--
1.7.9.5
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 1/2 Resend] mfd: htc-i2cpld: Remove unused code
2014-07-18 12:00 [PATCH 1/2 Resend] mfd: htc-i2cpld: Remove unused code Sachin Kamat
2014-07-18 12:00 ` [PATCH Resend 2/2] mfd: tps65912-spi: Remove unused variable Sachin Kamat
@ 2014-07-28 6:54 ` Lee Jones
1 sibling, 0 replies; 4+ messages in thread
From: Lee Jones @ 2014-07-28 6:54 UTC (permalink / raw)
To: Sachin Kamat; +Cc: linux-kernel, spk.linux, Cory Maccarrone
On Fri, 18 Jul 2014, Sachin Kamat wrote:
> Removed code unused in this function.
>
> Signed-off-by: Sachin Kamat <sachin.kamat@samsung.com>
> Cc: Cory Maccarrone <darkstar6262@gmail.com>
> ---
> Compile tested.
> ---
> drivers/mfd/htc-i2cpld.c | 5 -----
> 1 file changed, 5 deletions(-)
Applied, thanks.
> diff --git a/drivers/mfd/htc-i2cpld.c b/drivers/mfd/htc-i2cpld.c
> index d7b2a75aca3e..b44f0203983b 100644
> --- a/drivers/mfd/htc-i2cpld.c
> +++ b/drivers/mfd/htc-i2cpld.c
> @@ -332,18 +332,13 @@ static int htcpld_setup_chip_irq(
> int chip_index)
> {
> struct htcpld_data *htcpld;
> - struct device *dev = &pdev->dev;
> - struct htcpld_core_platform_data *pdata;
> struct htcpld_chip *chip;
> - struct htcpld_chip_platform_data *plat_chip_data;
> unsigned int irq, irq_end;
> int ret = 0;
>
> /* Get the platform and driver data */
> - pdata = dev_get_platdata(dev);
> htcpld = platform_get_drvdata(pdev);
> chip = &htcpld->chip[chip_index];
> - plat_chip_data = &pdata->chip[chip_index];
>
> /* Setup irq handlers */
> irq_end = chip->irq_start + chip->nirqs;
--
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH Resend 2/2] mfd: tps65912-spi: Remove unused variable
2014-07-18 12:00 ` [PATCH Resend 2/2] mfd: tps65912-spi: Remove unused variable Sachin Kamat
@ 2014-07-28 6:54 ` Lee Jones
0 siblings, 0 replies; 4+ messages in thread
From: Lee Jones @ 2014-07-28 6:54 UTC (permalink / raw)
To: Sachin Kamat; +Cc: linux-kernel, spk.linux
On Fri, 18 Jul 2014, Sachin Kamat wrote:
> ‘rx_buf’ is not used in this function.
>
> Signed-off-by: Sachin Kamat <sachin.kamat@samsung.com>
> ---
> drivers/mfd/tps65912-spi.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
Applied, thanks.
> diff --git a/drivers/mfd/tps65912-spi.c b/drivers/mfd/tps65912-spi.c
> index 69a5178bf152..de60ad98bd9f 100644
> --- a/drivers/mfd/tps65912-spi.c
> +++ b/drivers/mfd/tps65912-spi.c
> @@ -32,10 +32,9 @@ static int tps65912_spi_write(struct tps65912 *tps65912, u8 addr,
> unsigned long spi_data = 1 << 23 | addr << 15 | *data;
> struct spi_transfer xfer;
> struct spi_message msg;
> - u32 tx_buf, rx_buf;
> + u32 tx_buf;
>
> tx_buf = spi_data;
> - rx_buf = 0;
>
> xfer.tx_buf = &tx_buf;
> xfer.rx_buf = NULL;
--
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-07-28 6:54 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-18 12:00 [PATCH 1/2 Resend] mfd: htc-i2cpld: Remove unused code Sachin Kamat
2014-07-18 12:00 ` [PATCH Resend 2/2] mfd: tps65912-spi: Remove unused variable Sachin Kamat
2014-07-28 6:54 ` Lee Jones
2014-07-28 6:54 ` [PATCH 1/2 Resend] mfd: htc-i2cpld: Remove unused code Lee Jones
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®