From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755015AbdESOsh (ORCPT ); Fri, 19 May 2017 10:48:37 -0400 Received: from mail-lf0-f42.google.com ([209.85.215.42]:35663 "EHLO mail-lf0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753855AbdESOsc (ORCPT ); Fri, 19 May 2017 10:48:32 -0400 From: Nikita Yushchenko To: Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , Matt Ranostay , Gregor Boirie , Sanchayan Maity Cc: linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, Jeff White , Chris Healy , Vladimir Barinov , Nikita Yushchenko Subject: [PATCH 3/4] iio: hi8435: make in_voltage_sensing_mode_available visible Date: Fri, 19 May 2017 17:48:01 +0300 Message-Id: <20170519144802.14427-3-nikita.yoush@cogentembedded.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170519144802.14427-1-nikita.yoush@cogentembedded.com> References: <20170519144802.14427-1-nikita.yoush@cogentembedded.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Possible values of sensing_mode are encoded with strings and actual atrings used are not obvious. Provide a hint by enabling in_voltage_sensing_mode_available attribute. Signed-off-by: Nikita Yushchenko --- drivers/iio/adc/hi8435.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/iio/adc/hi8435.c b/drivers/iio/adc/hi8435.c index 45a92e3e8f2b..d09cb6ff8044 100644 --- a/drivers/iio/adc/hi8435.c +++ b/drivers/iio/adc/hi8435.c @@ -356,6 +356,7 @@ static const struct iio_enum hi8435_sensing_mode = { static const struct iio_chan_spec_ext_info hi8435_ext_info[] = { IIO_ENUM("sensing_mode", IIO_SEPARATE, &hi8435_sensing_mode), + IIO_ENUM_AVAILABLE("sensing_mode", &hi8435_sensing_mode), {}, }; -- 2.11.0