From owner-freebsd-multimedia Tue Jul 17 19:54:56 2001 Delivered-To: freebsd-multimedia@freebsd.org Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by hub.freebsd.org (Postfix) with ESMTP id 6A10F37B403; Tue, 17 Jul 2001 19:54:53 -0700 (PDT) (envelope-from brdavis@odin.ac.hmc.edu) Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.11.0/8.11.0) id f6I2sqR09989; Tue, 17 Jul 2001 19:54:52 -0700 Date: Tue, 17 Jul 2001 19:54:52 -0700 From: Brooks Davis To: multimedia@freebsd.org Cc: roger@freebsd.org Subject: bktr and smbus Message-ID: <20010717195452.A9080@Odin.AC.HMC.Edu> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="1yeeQ81UyVL57Vl7" Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --1yeeQ81UyVL57Vl7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable I'm working on reducing the number of devices with count entries in sys/conf/files*. (i.e. devices that you configure with entries like "device XXX 2" instead of "device XXX".) While looking for low hanging fruit, I noticed the only consumer of NSMBUS in the tree is the bktr driver and that the only significan code in the bktr driver the uses NBKTR is the smbus code in bktr_i2c.c. After spending some time trying to remove NSMBUS and NBKTR, I'm wondering why the smbus code exists as all. Are there any advantages to running with this? There certaintly aren't any code savings (the support functions are larger then the builtin i2c code) and the easiest way to remove NSMBUS and NBKTR would be to remove the smbus code followed by a four line patch define NBKTR to 1 in one place. -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --1yeeQ81UyVL57Vl7 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE7VPp7XY6L6fI4GtQRAjlHAKC9MlJh0c/rI49FIKzJae+uwHox0gCfV4Qz 7RA9bAtfmUeulB8c4FSKWMQ= =TjJH -----END PGP SIGNATURE----- --1yeeQ81UyVL57Vl7-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message