Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757234AbdIHVzj (ORCPT ); Fri, 8 Sep 2017 17:55:39 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:59591 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757069AbdIHVzi (ORCPT ); Fri, 8 Sep 2017 17:55:38 -0400 Date: Fri, 8 Sep 2017 23:55:36 +0200 From: Pavel Machek To: Tristram.Ha@microchip.com Cc: andrew@lunn.ch, muvarov@gmail.com, nathan.leigh.conrad@gmail.com, vivien.didelot@savoirfairelinux.com, f.fainelli@gmail.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Woojung.Huh@microchip.com Subject: Re: [PATCH RFC 5/5] Add KSZ8795 SPI driver Message-ID: <20170908215536.GE27428@amd> References: <93AF473E2DA327428DE3D46B72B1E9FD41121A95@CHN-SV-EXMX02.mchp-main.com> <20170908092614.GB18365@amd> <93AF473E2DA327428DE3D46B72B1E9FD41121E1C@CHN-SV-EXMX02.mchp-main.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="a1QUDc0q7S3U7/Jg" Content-Disposition: inline In-Reply-To: <93AF473E2DA327428DE3D46B72B1E9FD41121E1C@CHN-SV-EXMX02.mchp-main.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1387 Lines: 49 --a1QUDc0q7S3U7/Jg Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > > Please format according to CodingStyle. (Not only this.) > >=20 > > And this will be common for more drivers. Can it go to a header file > > and be included...? > >=20 >=20 > Sorry about the formatting. It seems my e-mail system needs to be checked > to make sure it does not auto-format the contents again. >=20 > About the SPI access functions they are the same for each driver except t= he > low level ksz_spi_read_reg and ksz_spi_write_reg. The dev_io_ops structu= re > should contain only those 2 and ksz_spi_get and ksz_spi_set. >=20 > But that requires changing ksz_spi.c. The idea was to keep the code of > KSZ9477 driver with little change as possible while introducing another d= river. So we change ksz_spi.c. Goal is to have clean code. Thanks, Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --a1QUDc0q7S3U7/Jg Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlmzEdgACgkQMOfwapXb+vJzFQCeOz41QuTi6/A6kjn+6uVf9TUk dBQAnjlKJqEEeRQ7RqW9edztNUlUbiVt =BuE2 -----END PGP SIGNATURE----- --a1QUDc0q7S3U7/Jg--