Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759783Ab2HJKFw (ORCPT ); Fri, 10 Aug 2012 06:05:52 -0400 Received: from opensource.wolfsonmicro.com ([80.75.67.52]:56537 "EHLO opensource.wolfsonmicro.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759362Ab2HJKFt (ORCPT ); Fri, 10 Aug 2012 06:05:49 -0400 Date: Fri, 10 Aug 2012 11:05:47 +0100 From: Mark Brown To: Axel Lin Cc: Liam Girdwood , linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/6] regulator: core: Add checking n_voltages if using list_voltage() to read voltage regulators Message-ID: <20120810100547.GG24328@opensource.wolfsonmicro.com> References: <1344562353.2996.1.camel@phoenix> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1344562353.2996.1.camel@phoenix> X-Cookie: Be different: conform. User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 581 Lines: 11 On Fri, Aug 10, 2012 at 09:32:33AM +0800, Axel Lin wrote: > Use list_voltage() to read single voltage regulators should be only applied to > single voltage regulators, thus add checking n_voltages for this case. We should be failing to register these regulators in the first place, or at least complaining extremely loudly about them. -- 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/