From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfram Sang Subject: Re: [PATCH net-next-2.6 v2 1/2] can: add driver for Softing card Date: Mon, 10 Jan 2011 14:40:06 +0100 Message-ID: <20110110134006.GC31011@pengutronix.de> References: <20110104150513.GA321@e-circ.dyndns.org> <20110104150759.GB321@e-circ.dyndns.org> <4D24DB2C.9040104@grandegger.com> <20110110133112.GA324@e-circ.dyndns.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4227615614438813297==" Cc: socketcan-core-0fE9KPoRgkgATYTw5x5z8w@public.gmane.org, netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Wolfgang Grandegger To: Kurt Van Dijck Return-path: In-Reply-To: <20110110133112.GA324-MxZ6Iy/zr/UdbCeoMzGj59i2O/JbrIOy@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: socketcan-core-bounces-0fE9KPoRgkgATYTw5x5z8w@public.gmane.org Errors-To: socketcan-core-bounces-0fE9KPoRgkgATYTw5x5z8w@public.gmane.org List-Id: netdev.vger.kernel.org --===============4227615614438813297== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ncSAzJYg3Aa9+CRW" Content-Disposition: inline --ncSAzJYg3Aa9+CRW Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable > > > + if (type !=3D 0xffff) { > > > + dev_alert(&card->pdev->dev, "firware starts with type 0x%04x\n", > >=20 > > Typo? > >=20 > ?? I think he means "fir[m]ware" > > > + > > > +int softing_default_output(struct net_device *netdev) > > > +{ > > > + struct softing_priv *priv =3D netdev_priv(netdev); > > > + struct softing *card =3D priv->card; > > > + > > > + switch (priv->chip) { > > > + case 1000: > > > + if (card->pdat->generation < 2) > > > + return 0xfb; > > > + return 0xfa; A ternary operator might look nicer here because of just a single return. Best wishes, Wolfram --=20 Pengutronix e.K. | Wolfram Sang | Industrial Linux Solutions | http://www.pengutronix.de/ | --ncSAzJYg3Aa9+CRW Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAk0rDDYACgkQD27XaX1/VRt7RwCdHyjqd6bahPITCr8LsyJ5q3JR WZoAoJWyyz7Qj79TEuGWG6hhS8MrXSSD =TiSd -----END PGP SIGNATURE----- --ncSAzJYg3Aa9+CRW-- --===============4227615614438813297== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Socketcan-core mailing list Socketcan-core-0fE9KPoRgkgATYTw5x5z8w@public.gmane.org https://lists.berlios.de/mailman/listinfo/socketcan-core --===============4227615614438813297==--