Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755536Ab1DAKZe (ORCPT ); Fri, 1 Apr 2011 06:25:34 -0400 Received: from mail-iw0-f174.google.com ([209.85.214.174]:35066 "EHLO mail-iw0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755322Ab1DAKZd (ORCPT ); Fri, 1 Apr 2011 06:25:33 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:cc:content-type:date:message-id:mime-version :x-mailer:content-transfer-encoding; b=CoHbe7m1nfmct0f5Fa0ufKu5+WJvIHwI09BgBdXXaHfOCJH5UuKvmmBQJXfNlOlf/h ZyE1mrjZ0TExmC1rG6cvvCaOYrVpXYXvXd8jphnHbDyaqvC8eJMEO7oZc0ndhzYdnSJ0 wP7/CsUaE2oF/y7GBW0gph0tv67xkiCSpcUNo= Subject: [PATCH] regulator: Fix the argument of calling regulator_mode_constrain From: Axel Lin To: linux-kernel@vger.kernel.org Cc: Liam Girdwood , Mark Brown Content-Type: text/plain; charset="UTF-8" Date: Fri, 01 Apr 2011 18:25:25 +0800 Message-ID: <1301653525.22820.1.camel@phoenix> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1182 Lines: 35 The second parameter of regulator_mode_constrain takes a pointer. This patch fixes below warning: drivers/regulator/core.c: In function 'regulator_set_mode': drivers/regulator/core.c:2014: warning: passing argument 2 of 'regulator_mode_constrain' makes pointer from integer without a cast drivers/regulator/core.c:200: note: expected 'int *' but argument is of type 'unsigned int' Signed-off-by: Axel Lin --- drivers/regulator/core.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c index a634946..fff95c3 100644 --- a/drivers/regulator/core.c +++ b/drivers/regulator/core.c @@ -2011,7 +2011,7 @@ int regulator_set_mode(struct regulator *regulator, unsigned int mode) } /* constraints check */ - ret = regulator_mode_constrain(rdev, mode); + ret = regulator_mode_constrain(rdev, &mode); if (ret < 0) goto out; -- 1.7.1 -- 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/