All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stefano Babic <sbabic@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 1/8] board: ge: bx50v3: move detect_baseboard() out of CONFIG_VIDEO_IPUV3
Date: Tue, 31 May 2016 17:35:41 +0200	[thread overview]
Message-ID: <574DAF4D.9000700@denx.de> (raw)
In-Reply-To: <fd17ae2147b68e8b7ad7c14451298e2c2458bc08.1464608199.git.andrew.shadura@collabora.co.uk>

Hi Andrew,

On 30/05/2016 13:37, Andrew Shadura wrote:
> detect_baseboard() function doesn't depend on CONFIG_VIDEO_IPUV3.
> Make sure it's available when CONFIG_VIDEO_IPUV3 is off.
> 
> Signed-off-by: Andrew Shadura <andrew.shadura@collabora.co.uk>
> ---
>  board/ge/bx50v3/bx50v3.c | 18 +++++++++---------
>  1 file changed, 9 insertions(+), 9 deletions(-)
> 
> diff --git a/board/ge/bx50v3/bx50v3.c b/board/ge/bx50v3/bx50v3.c
> index ff8f4d7..e167cd5 100644
> --- a/board/ge/bx50v3/bx50v3.c
> +++ b/board/ge/bx50v3/bx50v3.c
> @@ -321,6 +321,15 @@ int board_phy_config(struct phy_device *phydev)
>  	return 0;
>  }
>  
> +static int detect_baseboard(struct display_info_t const *dev)
> +{
> +	if (IS_ENABLED(CONFIG_TARGET_GE_B450V3) ||
> +	    IS_ENABLED(CONFIG_TARGET_GE_B650V3))
> +		return 1;
> +
> +	return 0;
> +}
> +
>  #if defined(CONFIG_VIDEO_IPUV3)
>  static iomux_v3_cfg_t const backlight_pads[] = {
>  	/* Power for LVDS Display */
> @@ -345,15 +354,6 @@ int board_cfb_skip(void)
>  	return 0;
>  }
>  
> -static int detect_baseboard(struct display_info_t const *dev)
> -{
> -	if (IS_ENABLED(CONFIG_TARGET_GE_B450V3) ||
> -	    IS_ENABLED(CONFIG_TARGET_GE_B650V3))
> -		return 1;
> -
> -	return 0;
> -}
> -
>  struct display_info_t const displays[] = {{
>  	.bus	= -1,
>  	.addr	= -1,
> 

But this generates a warning:

w+board/ge/bx50v3/bx50v3.c:324:12: warning: 'detect_baseboard' defined
but not used [-Wunused-function]

Why do you export it if you do not need it ? It is used only in the hdmi
detection, that means just if IPU is set.

Best regards,
Stefano Babic

-- 
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================

  parent reply	other threads:[~2016-05-31 15:35 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-30 11:37 [U-Boot] [PATCH v2 1/8] board: ge: bx50v3: move detect_baseboard() out of CONFIG_VIDEO_IPUV3 Andrew Shadura
2016-05-30 11:37 ` [U-Boot] [PATCH v2 2/8] board: ge: bx50v3: don't configure the backlight when there's no display Andrew Shadura
2016-05-30 12:03   ` Martin Donnelly
2016-05-30 11:37 ` [U-Boot] [PATCH v2 3/8] board: ge: bx50v3: make CONFIG_VIDEO optional and disabled by default Andrew Shadura
2016-05-30 12:04   ` Martin Donnelly
2016-05-30 11:37 ` [U-Boot] [PATCH v2 4/8] board: ge: bx50v3: make USB support " Andrew Shadura
2016-05-30 12:10   ` Martin Donnelly
2016-05-30 11:37 ` [U-Boot] [PATCH v2 5/8] board: ge: bx50v3: make network " Andrew Shadura
2016-05-30 12:11   ` Martin Donnelly
2016-05-30 11:37 ` [U-Boot] [PATCH v2 6/8] board: ge: bx50v3: make SATA " Andrew Shadura
2016-05-30 12:12   ` Martin Donnelly
2016-05-30 11:37 ` [U-Boot] [PATCH v2 7/8] board: ge: bx50v3: disable unused features to improve size Andrew Shadura
2016-05-30 12:13   ` Martin Donnelly
2016-05-30 11:37 ` [U-Boot] [PATCH v2 8/8] board: ge: bx50v3: add missing partnum variable Andrew Shadura
2016-05-30 12:28   ` Martin Donnelly
2016-05-30 11:59 ` [U-Boot] [PATCH v2 1/8] board: ge: bx50v3: move detect_baseboard() out of CONFIG_VIDEO_IPUV3 Martin Donnelly
2016-05-31 15:35 ` Stefano Babic [this message]
2016-05-31 15:55   ` Andrew Shadura
2016-06-07  8:27     ` Andrew Shadura
2016-06-07  8:57       ` Stefano Babic

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=574DAF4D.9000700@denx.de \
    --to=sbabic@denx.de \
    --cc=u-boot@lists.denx.de \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.