Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753288AbbKXHoq (ORCPT ); Tue, 24 Nov 2015 02:44:46 -0500 Received: from smtp-out-194.synserver.de ([212.40.185.194]:1097 "EHLO smtp-out-188.synserver.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753180AbbKXHoo (ORCPT ); Tue, 24 Nov 2015 02:44:44 -0500 X-SynServer-TrustedSrc: 1 X-SynServer-AuthUser: lars@metafoo.de X-SynServer-PPID: 2484 Message-ID: <56541566.80604@metafoo.de> Date: Tue, 24 Nov 2015 08:44:38 +0100 From: Lars-Peter Clausen User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.8.0 MIME-Version: 1.0 To: Ranjit Waghmode , jic23@kernel.org, knaack.h@gmx.de, pmeerw@pmeerw.net, michal.simek@xilinx.com, soren.brinkmann@xilinx.com CC: linux-iio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, sbhatta@xilinx.com, punnaia@xilinx.com Subject: Re: [LINUX PATCH] iio: xadc: fix for extended name remains same issue References: <1448345847-15051-1-git-send-email-ranjit.waghmode@xilinx.com> In-Reply-To: <1448345847-15051-1-git-send-email-ranjit.waghmode@xilinx.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1248 Lines: 25 On 11/24/2015 07:17 AM, Ranjit Waghmode wrote: > If we read channel details based on the device tree entry; channel’s scan_index > and channel’s address were overwritten by scan_index and address of channel > based on device tree. But extended name were remaining same because of which > sysfs entry names were continuous. I don't understand this part. Those channels don't have a extended name, they are always NULL. Those are added as part of this patch as well, but the patch description makes it sound like it is a fix for a existing issue. > > So this patch takes care of the above issue by updating 'channels' structure > inside xadc_parse_dt() function with the help of 'xadc_channels' structure > so that every channel's parameters will be updated properly. Also for the > sake of simplicity this patch updates default values for extend_name. We can't really do that, that would break existing applications. And to be honest I don't think regular channels should have a extended name. -- 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/