Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752730AbdGYPie (ORCPT ); Tue, 25 Jul 2017 11:38:34 -0400 Received: from mout.kundenserver.de ([217.72.192.74]:63048 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752669AbdGYPid (ORCPT ); Tue, 25 Jul 2017 11:38:33 -0400 From: Arnd Bergmann To: Greg Kroah-Hartman , Marcus Wolf Cc: Arnd Bergmann , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH] staging: pi433: fix Kconfig entry Date: Tue, 25 Jul 2017 17:38:05 +0200 Message-Id: <20170725153825.272975-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:6RZhb2cG47UUulyxMzheFPTUIb68zEC79UUxkMjvLdHXabxYCT4 0C8N36sZ0/B/nVbgp+E15XBi6Aitb2pccjccPeshkxLt9M514doUnUxMeHy6j3/pK/8qJ56 lkNOxzrdXw1vGKtEFnIC8umbvRv0t76/GpHaHWTzKCweaCLpq1sCn6vPL6WPEMOZCOgju4F 30REV5Wy14NOHo10xpLog== X-UI-Out-Filterresults: notjunk:1;V01:K0:zNWA4gkRU80=:lxoLnSU8kMbJVKhZ9QW2mp 6oNCOAS2IWbtgMCX7RpuSyc0scUhDBO4z9WaAfxXZavzyxVx/eSoGgzf7SbEWC+vHJqeJ0E38 V4JNC9t8P3/nKeObF9ncYqHL32lCjMEZ+UlTJrFliLChCzrPPWjmnJrlQv/ZiUbr03PgeulF+ cLg3YXXHEEYbP2rfTqdw5saX4PeQXlN/cahcGa3dJioCLeNUNTpAUv7uR8B7Q9LA96nNghp7o QrdfanN+ad8NJwT8YaPAj7ueybE/0ud4V4rKEZb3EZKEz+WASQeO+Y8jMVhcXl7ozrcb55ZaR dXeO7764Y7z6SUHsKEQN50a/xSAJNbY1BylB+2m7jD07rsUEicUktCYNAqKBoTNpzipgcK59a kfmfvGSMIXubmWsdYYYiAzm5Dvvw6XXciFJO7VtoWRD9yZzGG4O9IxqiOJgNNFzAA1Faw/ouw zVt510b5kcgoPQDcRCf44fKmQRN6hpMgibGdMI/HOAs4gvQLz53/VU9f0XRe+Rh7s62rSybpU Wpkfz7FdSNIUja1LqN1kif40IkDUrjAJEOWp0nkArgDzfWTArTi6WkQMuIi++i63DWuIvHl8L PtbsgqfyBlYdP1Ce2ltSt13OP1luw6muppM+gsg6VzpGMaCgi/4HbKakPCIrzpSulw5iwqz7S NGx+LQBWT7GpRW8pf8uOC8N0H3X2G/d0QNqUNoUVBjVG2316t3vQxl9rs97/Cg28jOvvER3Bo bVYnmSfxT185SUYDIdMb+ld/4ei/xo9ncMX9JQ== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2463 Lines: 54 I ran into a build error with the new pi433 driver and CONFIG_SPI disabled: drivers/staging/pi433/pi433_if.o: In function `pi433_probe.part.6': pi433_if.c:(.text+0x1657): undefined reference to `spi_write_then_read' drivers/staging/pi433/pi433_if.o: In function `pi433_probe': pi433_if.c:(.text+0x1d28): undefined reference to `spi_setup' drivers/staging/pi433/pi433_if.o: In function `pi433_init': I'm adding a Kconfig dependency on CONFIG_SPI here to avoid that, and since I spot two cosmetic mistakes in the entry, I'm also fixing the whitespace and remove the redundant 'default n'. Fixes: 874bcba65f9a ("staging: pi433: New driver") Signed-off-by: Arnd Bergmann --- drivers/staging/pi433/Kconfig | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/drivers/staging/pi433/Kconfig b/drivers/staging/pi433/Kconfig index b2716b85d5af..2fd07991c871 100644 --- a/drivers/staging/pi433/Kconfig +++ b/drivers/staging/pi433/Kconfig @@ -1,16 +1,16 @@ config PI433 - tristate "Pi433 - a 433MHz radio module for Raspberry Pi" - default n - ---help--- - This option allows you to enable support for the radio module Pi433. + tristate "Pi433 - a 433MHz radio module for Raspberry Pi" + depends on SPI + ---help--- + This option allows you to enable support for the radio module Pi433. - Pi433 is a shield that fits onto the GPIO header of a Raspberry Pi - or compatible. It extends the Raspberry Pi with the option, to - send and receive data in the 433MHz ISM band - for example to - communicate between two systems without using ethernet or bluetooth - or for control or read sockets, actors, sensors, widely available - for low price. + Pi433 is a shield that fits onto the GPIO header of a Raspberry Pi + or compatible. It extends the Raspberry Pi with the option, to + send and receive data in the 433MHz ISM band - for example to + communicate between two systems without using ethernet or bluetooth + or for control or read sockets, actors, sensors, widely available + for low price. - For details or the option to buy, please visit https://pi433.de/en.html + For details or the option to buy, please visit https://pi433.de/en.html - If in doubt, say N here, but saying yes most probably won't hurt + If in doubt, say N here, but saying yes most probably won't hurt -- 2.9.0