Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752152AbaA2IiW (ORCPT ); Wed, 29 Jan 2014 03:38:22 -0500 Received: from mail-pd0-f180.google.com ([209.85.192.180]:59026 "EHLO mail-pd0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750851AbaA2IiU (ORCPT ); Wed, 29 Jan 2014 03:38:20 -0500 Date: Wed, 29 Jan 2014 00:38:19 -0800 (PST) Message-ID: <87r47r6v48.wl%kuninori.morimoto.gx@gmail.com> From: Kuninori Morimoto To: Mark Brown , Liam Girdwood , Lee Jones Cc: Simon , Magnus , Linux-SH , linux-kernel@vger.kernel.org Subject: About gpio-regulator setting on DT User-Agent: Wanderlust/2.14.0 Emacs/23.3 Mule/6.0 MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Lee, Mark, Liam I would like to use ${LINUX}/drivers/gpio-regulator.c via DT. My board needs "GPIOF_OUT_INIT_HIGH" on struct gpio :: flags But, current of_get_gpio_regulator_config() seems doesn't have such setting method. This means it will be "GPIOF_OUT_INIT_LOW" for (i = 0; i < config->nr_gpios; i++) { gpio = of_get_named_gpio(np, "gpios", i); if (gpio < 0) break; config->gpios[i].gpio = gpio; } How to set GPIOF_OUT_INIT_HIGH via DT ? Or, am I misunderstanding ? Best regards --- Kuninori Morimoto -- 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/