From patchwork Mon May 6 12:48:58 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Jan_L=C3=BCbbe?= X-Patchwork-Id: 2524011 Return-Path: X-Original-To: patchwork-linux-omap@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id EB003DF230 for ; Mon, 6 May 2013 12:49:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753093Ab3EFMtV (ORCPT ); Mon, 6 May 2013 08:49:21 -0400 Received: from metis.ext.pengutronix.de ([92.198.50.35]:38566 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752782Ab3EFMtU (ORCPT ); Mon, 6 May 2013 08:49:20 -0400 Received: from dude.hi.pengutronix.de ([2001:6f8:1178:2:21e:67ff:fe11:9c5c]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1UZKqx-0007ah-E5; Mon, 06 May 2013 14:49:15 +0200 Received: from jlu by dude.hi.pengutronix.de with local (Exim 4.80) (envelope-from ) id 1UZKqv-0006RW-C9; Mon, 06 May 2013 14:49:13 +0200 From: Jan Luebbe To: Pantelis Antoniou Cc: rachna@ti.com, linux-iio@vger.kernel.org, linux-omap@vger.kernel.org, Koen Kooi , Jan Luebbe Subject: [PATCH 1/2] iio: adc: ti_am335x_adc: revert info_mask removal Date: Mon, 6 May 2013 14:48:58 +0200 Message-Id: <1367844539-6812-2-git-send-email-jlu@pengutronix.de> X-Mailer: git-send-email 1.8.2.rc2 In-Reply-To: <1367844539-6812-1-git-send-email-jlu@pengutronix.de> References: <1351698938-3839-1-git-send-email-panto@antoniou-consulting.com> <1367844539-6812-1-git-send-email-jlu@pengutronix.de> X-SA-Exim-Connect-IP: 2001:6f8:1178:2:21e:67ff:fe11:9c5c X-SA-Exim-Mail-From: jlu@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-omap@vger.kernel.org Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org Commit "ti_tscadc: Update with IIO map interface & deal with partial activation" by Pantelis Antoniou removed this line. Without it, the in_voltage?_raw entries are missing from sysfs. Signed-off-by: Jan Luebbe --- drivers/iio/adc/ti_am335x_adc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/iio/adc/ti_am335x_adc.c b/drivers/iio/adc/ti_am335x_adc.c index ee20c0c..620cc0c 100644 --- a/drivers/iio/adc/ti_am335x_adc.c +++ b/drivers/iio/adc/ti_am335x_adc.c @@ -107,6 +107,7 @@ static int tiadc_channel_init(struct iio_dev *indio_dev, chan->type = IIO_VOLTAGE; chan->indexed = 1; chan->channel = i; + chan->info_mask = IIO_CHAN_INFO_RAW_SEPARATE_BIT; chan->datasheet_name = s; chan->scan_type.sign = 'u'; chan->scan_type.realbits = 12;