From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754010AbcDYIJQ (ORCPT ); Mon, 25 Apr 2016 04:09:16 -0400 Received: from mga03.intel.com ([134.134.136.65]:47117 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753909AbcDYIFU (ORCPT ); Mon, 25 Apr 2016 04:05:20 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,532,1455004800"; d="scan'208";a="791732234" From: Lu Baolu To: felipe.balbi@linux.intel.com, Mathias Nyman , Greg Kroah-Hartman , Lee Jones , Heikki Krogerus , MyungJoo Ham , Chanwoo Choi , Liam Girdwood , Mark Brown Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Lu Baolu Subject: [PATCH v6 03/10] regulator: fixed: add device binding for platform device Date: Mon, 25 Apr 2016 16:04:49 +0800 Message-Id: <1461571496-9600-4-git-send-email-baolu.lu@linux.intel.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1461571496-9600-1-git-send-email-baolu.lu@linux.intel.com> References: <1461571496-9600-1-git-send-email-baolu.lu@linux.intel.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is needed to handle the GPIO connected USB vcc pin found on Intel Baytrail devices. Signed-off-by: Lu Baolu --- drivers/regulator/fixed.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/regulator/fixed.c b/drivers/regulator/fixed.c index ff62d69..e6f376f 100644 --- a/drivers/regulator/fixed.c +++ b/drivers/regulator/fixed.c @@ -209,12 +209,19 @@ static const struct of_device_id fixed_of_match[] = { MODULE_DEVICE_TABLE(of, fixed_of_match); #endif +static const struct platform_device_id fixed_platform_ids[] = { + { .name = "reg-fixed-voltage", }, + { /* sentinel */ } +}; +MODULE_DEVICE_TABLE(platform, fixed_platform_ids); + static struct platform_driver regulator_fixed_voltage_driver = { .probe = reg_fixed_voltage_probe, .driver = { .name = "reg-fixed-voltage", .of_match_table = of_match_ptr(fixed_of_match), }, + .id_table = fixed_platform_ids, }; static int __init regulator_fixed_voltage_init(void) -- 2.1.4