From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anatolij Gustschin Date: Tue, 2 Jul 2013 00:01:33 +0200 Subject: [U-Boot] [PATCH] bmp: Respect "splashpos" if it is defined In-Reply-To: <1370541443-13184-1-git-send-email-otavio@ossystems.com.br> References: <1370541443-13184-1-git-send-email-otavio@ossystems.com.br> Message-ID: <20130702000133.22279ec2@crub> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello Otavio, Sorry for delay. On Thu, 6 Jun 2013 14:57:23 -0300 Otavio Salvador wrote: ... > +#ifdef CONFIG_SPLASH_SCREEN_ALIGN > + s = getenv("splashpos"); > + if (s != NULL) { > + if (s[0] == 'm') > + x = BMP_ALIGN_CENTER; > + else > + x = simple_strtol(s, NULL, 0); > + > + s = strchr(s + 1, ','); > + if (s != NULL) { > + if (s[1] == 'm') > + y = BMP_ALIGN_CENTER; > + else > + y = simple_strtol(s + 1, NULL, 0); > + } > + } > +#endif /* CONFIG_SPLASH_SCREEN_ALIGN */ This code is already there in two other drivers, we should better add a common function for "splashpos" checking and use it here. I'll submit a patch shortly. Thanks, Anatolij