Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752137AbdGaLeY (ORCPT ); Mon, 31 Jul 2017 07:34:24 -0400 Received: from aibo.runbox.com ([91.220.196.211]:59214 "EHLO aibo.runbox.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751017AbdGaLeW (ORCPT ); Mon, 31 Jul 2017 07:34:22 -0400 From: Egil Hjelmeland To: andrew@lunn.ch, vivien.didelot@savoirfairelinux.com, f.fainelli@gmail.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@pengutronix.de Cc: Egil Hjelmeland Subject: [PATCH net-next 0/2] Refactor lan9303_xxx_packet_processing Date: Mon, 31 Jul 2017 13:33:53 +0200 Message-Id: <20170731113355.4284-1-privat@egil-hjelmeland.no> X-Mailer: git-send-email 2.11.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 568 Lines: 19 First patch: Change lan9303_enable_packet_processing, lan9303_disable_packet_processing(): Pass port number (0,1,2) as parameter instead of port offset. Plus replaced a constant 0x400 with LAN9303_SWITCH_PORT_REG() Second patch: Simplify accordingly. Comments welcome! Egil Hjelmeland (2): net: dsa: lan9303: Refactor lan9303_xxx_packet_processing() net: dsa: lan9303: Simplify lan9303_xxx_packet_processing() usage drivers/net/dsa/lan9303-core.c | 73 ++++++++++++++++++++---------------------- 1 file changed, 35 insertions(+), 38 deletions(-) -- 2.11.0