Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751010AbcDQSIn (ORCPT ); Sun, 17 Apr 2016 14:08:43 -0400 Received: from bear.ext.ti.com ([192.94.94.41]:47753 "EHLO bear.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750710AbcDQSIm (ORCPT ); Sun, 17 Apr 2016 14:08:42 -0400 Subject: Re: [PATCH v2 4/5] iio: health: afe4404: use regmap to retrieve struct device To: Jonathan Cameron , Alison Schofield References: <2dd23e55fa7c2d16c577146eefd4a84046d2b838.1460314070.git.amsfield22@gmail.com> <57129101.7000503@kernel.org> CC: , , , , , , , , From: "Andrew F. Davis" Message-ID: <5713D0F8.20303@ti.com> Date: Sun, 17 Apr 2016 13:07:52 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <57129101.7000503@kernel.org> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 392 Lines: 11 On 04/16/2016 02:22 PM, Jonathan Cameron wrote: > On 10/04/16 20:07, Alison Schofield wrote: >> Driver includes struct regmap and struct device in its global data. >> Remove the struct device and use regmap API to retrieve device info. >> Why? This adds nothing but more code to get dev through some container_of trickery when we could just keep a dev pointer in the data structure. Andrew