Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753129Ab3HBFuT (ORCPT ); Fri, 2 Aug 2013 01:50:19 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:23794 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750960Ab3HBFuR (ORCPT ); Fri, 2 Aug 2013 01:50:17 -0400 X-AuditID: cbfee690-b7f6f6d00000740c-17-51fb4898b156 From: Jingoo Han To: Samuel Ortiz , Lee Jones Cc: linux-kernel@vger.kernel.org, Jingoo Han Subject: [PATCH] mfd: menelaus: use NULL instead of 0 Date: Fri, 02 Aug 2013 14:50:15 +0900 Message-id: <000601ce8f44$299805e0$7cc811a0$@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Mailer: Microsoft Outlook 14.0 Thread-index: Ac6PRB7uGOApXOEmQriQpVToyEBj0Q== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrEIsWRmVeSWpSXmKPExsVy+t8zI90ZHr8DDU6uY7a4vPASq8X9r0cZ LS7vmsNmcbqb1YHF4861PWwe804GevRtWcXo8XmTXABLFJdNSmpOZllqkb5dAldG9+knTAUf OCqOLjjB3MC4l72LkZNDQsBEYu61g6wQtpjEhXvr2UBsIYFljBKbj4bD1Ky61MXYxcgFFF/E KDFtRgc7hPOLUeLfl4XMIFVsAmoSX74cBkpwcIgIeEncuhMEEmYWcJL4uWUmC4gtLGAqcfRq KxtICYuAqsS3m5YgYV4BS4k/Fw6zQ9iCEj8m32OBaNWSWL/zOBOELS+xec1bZoh7FCR2nH3N CGKLCOhJ7G2/xwxRIyKx78U7sDslBDaxS6z63wg2lEVAQOLb5EMsIHslBGQlNh2AmiMpcXDF DZYJjGKzkKyehWT1LCSrZyFZsYCRZRWjaGpBckFxUnqRiV5xYm5xaV66XnJ+7iZGSHxN2MF4 74D1IcZkoPUTmaVEk/OB8ZlXEm9obGZkYWp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SA/h98sr8b1/tcCIUdvg0oK1090n5G9PfcS33+LjkveM3zyN2ibPvqOqxFKc kWioxVxUnAgAd0WxTSMDAAA= DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1344 Lines: 42 'mmc_callback_data' and 'vtg' are pointers. Fix the following sparse warning: drivers/mfd/menelaus.c:445:43: warning: Using plain integer as NULL pointer drivers/mfd/menelaus.c:469:20: warning: Using plain integer as NULL pointer Signed-off-by: Jingoo Han --- drivers/mfd/menelaus.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mfd/menelaus.c b/drivers/mfd/menelaus.c index 998ce8c..0f62ecd 100644 --- a/drivers/mfd/menelaus.c +++ b/drivers/mfd/menelaus.c @@ -442,7 +442,7 @@ void menelaus_unregister_mmc_callback(void) menelaus_remove_irq_work(MENELAUS_MMC_S2D1_IRQ); the_menelaus->mmc_callback = NULL; - the_menelaus->mmc_callback_data = 0; + the_menelaus->mmc_callback_data = NULL; } EXPORT_SYMBOL(menelaus_unregister_mmc_callback); @@ -466,7 +466,7 @@ static int menelaus_set_voltage(const struct menelaus_vtg *vtg, int mV, struct i2c_client *c = the_menelaus->client; mutex_lock(&the_menelaus->lock); - if (vtg == 0) + if (vtg == NULL) goto set_voltage; ret = menelaus_read_reg(vtg->vtg_reg); -- 1.7.10.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/