linux-i2c.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Woodhouse, David" <david.woodhouse-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
To: Jean Delvare <khali-PUYAD+kWke1g9hUCZPvPmw@public.gmane.org>
Cc: Linux I2C <linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	Hans de Goede <hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
Subject: Re: [PATCH] i2c-i801: Don't probe for slaves on IDF channels
Date: Tue, 10 May 2011 15:50:12 +0100	[thread overview]
Message-ID: <1305039012.30435.85.camel@i7.infradead.org> (raw)
In-Reply-To: <20110510160835.37bea352-R0o5gVi9kd7kN2dkZ6Wm7A@public.gmane.org>

[-- Attachment #1: Type: text/plain, Size: 1011 bytes --]

On Tue, 2011-05-10 at 15:08 +0100, Jean Delvare wrote:
> I don't know if Fujitsu is ever going to produce Patsburg-based
> machines, but if they do, I'd rather not probe the secondary (IDF)
> SMBus channels. At least not until we have a good reason for doing so.

Seems reasonable in principle.

> +#if defined CONFIG_INPUT_APANEL || defined CONFIG_INPUT_APANEL_MODULE

> +#if defined CONFIG_SENSORS_FSCHMD || defined CONFIG_SENSORS_FSCHMD_MODULE

This kind of ifdef is horrid though, and should be avoided at all costs.
A setting of CONFIG_xxx_MODULE should not affect the *static* kernel
image. You should be able to enable an additional module, build it and
use it without having to rebuild/reboot the kernel.

I know there are *some* cases where we violate that rule, but that
doesn't make it any nicer.

-- 
David Woodhouse                            Open Source Technology Centre
David.Woodhouse-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org                              Intel Corporation

[-- Attachment #2: smime.p7s --]
[-- Type: application/x-pkcs7-signature, Size: 6242 bytes --]

  parent reply	other threads:[~2011-05-10 14:50 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-10 14:08 [PATCH] i2c-i801: Don't probe for slaves on IDF channels Jean Delvare
     [not found] ` <20110510160835.37bea352-R0o5gVi9kd7kN2dkZ6Wm7A@public.gmane.org>
2011-05-10 14:41   ` Hans de Goede
     [not found]     ` <4DC94EB2.6020007-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2011-05-10 14:45       ` Jean Delvare
2011-05-10 14:50   ` Woodhouse, David [this message]
     [not found]     ` <1305039012.30435.85.camel-W2I5cNIroUsVm/YvaOjsyQ@public.gmane.org>
2011-05-10 15:31       ` Jean Delvare

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1305039012.30435.85.camel@i7.infradead.org \
    --to=david.woodhouse-ral2jqcrhueavxtiumwx3w@public.gmane.org \
    --cc=hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
    --cc=khali-PUYAD+kWke1g9hUCZPvPmw@public.gmane.org \
    --cc=linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).