Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1291227 > unrolled thread

[PATCH RESEND] misc/bmp085: Enable building as a module

Started byBen Hutchings <ben@decadent.org.uk>
First post2015-12-14 15:30 +0100
Last post2015-12-14 23:30 +0100
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH RESEND] misc/bmp085: Enable building as a module Ben Hutchings <ben@decadent.org.uk> - 2015-12-14 15:30 +0100
    Re: [PATCH RESEND] misc/bmp085: Enable building as a module Arnd Bergmann <arnd@arndb.de> - 2015-12-14 23:30 +0100

#1291227 — [PATCH RESEND] misc/bmp085: Enable building as a module

FromBen Hutchings <ben@decadent.org.uk>
Date2015-12-14 15:30 +0100
Subject[PATCH RESEND] misc/bmp085: Enable building as a module
Message-ID<qFCiu-7lj-9@gated-at.bofh.it>

[Multipart message — attachments visible in raw view] — view raw

Commit 985087dbcb02 'misc: add support for bmp18x chips to the bmp085
driver' changed the BMP085 config symbol to a boolean.  I see no
reason why the shared code cannot be built as a module, so change it
back to tristate.

Fixes: 985087dbcb02 ("misc: add support for bmp18x chips to the bmp085 driver")
Cc: Eric Andersson <eric.andersson@unixphere.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
---
 drivers/misc/Kconfig |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/misc/Kconfig
+++ b/drivers/misc/Kconfig
@@ -439,7 +439,7 @@ config ARM_CHARLCD
 	  still useful.
 
 config BMP085
-	bool
+	tristate
 	depends on SYSFS
 
 config BMP085_I2C

[toc] | [next] | [standalone]


#1291618

FromArnd Bergmann <arnd@arndb.de>
Date2015-12-14 23:30 +0100
Message-ID<qFJN1-3NK-27@gated-at.bofh.it>
In reply to#1291227
On Monday 14 December 2015 14:29:23 Ben Hutchings wrote:
> Commit 985087dbcb02 'misc: add support for bmp18x chips to the bmp085
> driver' changed the BMP085 config symbol to a boolean.  I see no
> reason why the shared code cannot be built as a module, so change it
> back to tristate.
> 
> Fixes: 985087dbcb02 ("misc: add support for bmp18x chips to the bmp085 driver")
> Cc: Eric Andersson <eric.andersson@unixphere.com>
> Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
> 

Looks good to me. There are often subtle bugs in configurations like these
where a driver can depend on either SPI or I2C, but I don't see a problem
here, because the common code still only gets built as a module if neither
front-end is built-in.

Acked-by: Arnd Bergmann <arnd@arndb.de>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web