Skip to content

Commit

Permalink
drm/rp1: depends on, instead of select, MFD_RP1
Browse files Browse the repository at this point in the history
According to kconfig-language.txt [1], select should be used only for
"non-visible symbols ... and for symbols with no dependencies". Since
MFD_RP1 both is visible and has a dependency, "select" should not be
used and "depends on" should be used instead.

In particular, this fixes the build of this kernel tree on NixOS, where
its kernel config system will try to answer 'M' to as many config as
possible.

[1] https://www.kernel.org/doc/html/latest/kbuild/kconfig-language.html

Signed-off-by: Ratchanan Srirattanamet <[email protected]>
  • Loading branch information
peat-psuwit authored and popcornmix committed Mar 18, 2024
1 parent 434aacb commit 8fa9648
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions drivers/gpu/drm/rp1/rp1-dpi/Kconfig
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# SPDX-License-Identifier: GPL-2.0-only
config DRM_RP1_DPI
tristate "DRM Support for RP1 DPI"
depends on DRM
select MFD_RP1
depends on DRM && MFD_RP1
select DRM_GEM_DMA_HELPER
select DRM_KMS_HELPER
select DRM_VRAM_HELPER
Expand Down
3 changes: 1 addition & 2 deletions drivers/gpu/drm/rp1/rp1-dsi/Kconfig
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# SPDX-License-Identifier: GPL-2.0-only
config DRM_RP1_DSI
tristate "DRM Support for RP1 DSI"
depends on DRM
select MFD_RP1
depends on DRM && MFD_RP1
select DRM_GEM_DMA_HELPER
select DRM_KMS_HELPER
select DRM_MIPI_DSI
Expand Down
3 changes: 1 addition & 2 deletions drivers/gpu/drm/rp1/rp1-vec/Kconfig
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# SPDX-License-Identifier: GPL-2.0-only
config DRM_RP1_VEC
tristate "DRM Support for RP1 VEC"
depends on DRM
select MFD_RP1
depends on DRM && MFD_RP1
select DRM_GEM_DMA_HELPER
select DRM_KMS_HELPER
select DRM_VRAM_HELPER
Expand Down

0 comments on commit 8fa9648

Please sign in to comment.