Re: [PATCH 2/2] Staging: netlogic: platform_net.c: introduced a helper function
From: Greg KH
Date: Fri Feb 16 2018 - 09:33:23 EST
On Wed, Jan 17, 2018 at 02:10:47PM +0530, Naveen Panwar wrote:
> In staging/netlogic/platform.c Refactoring the identical code used
> in several places for calculating the physical address of
> memory-mapped objects on the device.Put that into an inline helper
> function and use it.
>
> Adjust the types of arguments of xlr_resource_init() - 'offset' and 'irq'
> are actually unsigned. The values passed to those fit into 0..2G range,
> so the behaviour is unchanged, but it's more consistent that way.
>
> Signed-off-by: Naveen Panwar <naveen.panwar27@xxxxxxxxx>
> ---
> drivers/staging/netlogic/platform_net.c | 21 +++++++++++----------
> 1 file changed, 11 insertions(+), 10 deletions(-)
This patch does not apply at all :(