From patchwork Wed Nov 21 09:22:02 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Miao X-Patchwork-Id: 1779011 Return-Path: X-Original-To: patchwork-linux-mmc@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id B624D3FC5A for ; Wed, 21 Nov 2012 09:22:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752391Ab2KUJWZ (ORCPT ); Wed, 21 Nov 2012 04:22:25 -0500 Received: from mail-lb0-f174.google.com ([209.85.217.174]:53873 "EHLO mail-lb0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751937Ab2KUJWY (ORCPT ); Wed, 21 Nov 2012 04:22:24 -0500 Received: by mail-lb0-f174.google.com with SMTP id gi11so2525861lbb.19 for ; Wed, 21 Nov 2012 01:22:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:cc:content-type; bh=2yvTm79Daw5yqVOoBmZGTOcFqQw1CffTc7Ulc3Gf+RE=; b=U1zx2+qM+kJu1NbEofNFqCnb5jT8AAMFMvvq57RouIpLGcy7oSwcdN3LZeWIIuFy17 XuAPBZpjvnhzkf/32PhA9LvRD7d4j6X+S+TMgnRCc4tdwE2byNDGr/cVhdE+fECLphet M1wdALbArRuUDn0qxKISDY7Yqlg22lurpkB4mzy3jwJLuhVjBIfHf3dtA4zEbvURRyph ZP8HxpQK1GFyn4B8nzSAdqiWxunnOfNUjDK8HEHjg9cz7M4Oy1OqWPpWDkTURiX30i03 im3RJ83DzTC5k8avilmWteTOIS3c7DqaCemSXEJOQHuVs7/XQY1+giyNySMpUg8A9NB0 ZHpQ== Received: by 10.112.47.65 with SMTP id b1mr7093515lbn.14.1353489743128; Wed, 21 Nov 2012 01:22:23 -0800 (PST) MIME-Version: 1.0 Received: by 10.114.22.39 with HTTP; Wed, 21 Nov 2012 01:22:02 -0800 (PST) From: Eric Miao Date: Wed, 21 Nov 2012 17:22:02 +0800 Message-ID: Subject: [PATCH] regulator: add missing prototype for regulator_is_supported_voltage To: Mark Brown Cc: Philip Rakity , Philip Rakity , "linux-mmc@vger.kernel.org" Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org Hi Mark, Looks to be a simple omission there. Patch is from Philip Rakity, I just did review and by-passing here. From d015139ac621e10d5d9c0d3e427e9517b08fe772 Mon Sep 17 00:00:00 2001 From: Philip Rakity Date: Tue, 20 Nov 2012 18:07:41 +0100 Subject: [PATCH] regulator: add missing prototype for regulator_is_supported_voltage avoids needs for CONFIG_REGULATOR in sdhci.c Signed-off-by: Philip Rakity Reviewed-by: Eric Miao --- include/linux/regulator/consumer.h | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) static inline int regulator_set_voltage_tol(struct regulator *regulator, -- 1.7.0.4 -- To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/include/linux/regulator/consumer.h b/include/linux/regulator/consumer.h index c43cd35..4e3ec91 100644 --- a/include/linux/regulator/consumer.h +++ b/include/linux/regulator/consumer.h @@ -358,6 +358,10 @@ static inline void regulator_set_drvdata(struct regulator *regulator, { } +static inline int regulator_count_voltages(struct regulator *regulator) +{ + return 0; +} #endif