From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752956AbcA2KNq (ORCPT ); Fri, 29 Jan 2016 05:13:46 -0500 Received: from smtp02.smtpout.orange.fr ([80.12.242.124]:58546 "EHLO smtp.smtpout.orange.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751699AbcA2KNn (ORCPT ); Fri, 29 Jan 2016 05:13:43 -0500 X-ME-Helo: belgarion X-ME-Auth: amFyem1pay5yb2JlcnRAb3JhbmdlLmZy X-ME-Date: Fri, 29 Jan 2016 11:13:42 +0100 X-ME-IP: 86.199.70.175 From: Robert Jarzmik To: Arnd Bergmann Cc: Felipe Balbi , linux-arm-kernel@lists.infradead.org, Felipe Balbi , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Haojian Zhuang , Daniel Mack , Imre Kaloz , Krzysztof Halasa , Greg Kroah-Hartman Subject: Re: [PATCH 2/7] usb: gadget: pxa25x_udc cleanup References: <1453997722-3489596-1-git-send-email-arnd@arndb.de> <1453997843-3489728-1-git-send-email-arnd@arndb.de> <1453997843-3489728-2-git-send-email-arnd@arndb.de> X-URL: http://belgarath.falguerolles.org/ Date: Fri, 29 Jan 2016 11:13:41 +0100 In-Reply-To: <1453997843-3489728-2-git-send-email-arnd@arndb.de> (Arnd Bergmann's message of "Thu, 28 Jan 2016 17:17:03 +0100") Message-ID: <87r3h07kx6.fsf@belgarion.home> User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Arnd Bergmann writes: > This removes the dependency on the mach/hardware.h header file > from the pxa25x_udc driver after the register definitions were > already unified in the previous patch. > > Following the model of pxa27x_udc (and basically all other drivers > in the kernel), we define the register numbers as offsets from > the register base address and use accessor functions to read/write > them. > > For the moment, this still leaves the direct pointer dereference > in place, instead of using readl/writel, so this patch should > not be changing the behavior of the driver, other than using > ioremap() on the platform resource to replace the hardcoded > virtual address pointers. > > Signed-off-by: Arnd Bergmann Acked-by: Robert Jarzmik It's too bad coccinelle cannot make that work more automatic, isn't it ? :) Cheers. -- Robert