[PATCH] Fix default baudrate setting
Marc Kleine-Budde
mkl at pengutronix.de
Sat Sep 25 19:54:36 EDT 2010
On 09/25/2010 10:00 PM, Jean-Christophe PLAGNIOL-VILLARD wrote:
> On 19:21 Sat 25 Sep , Juergen Beisert wrote:
>> commit 604c99039f873952e252a5933309fc8e59b603db
>> Author: Juergen Beisert <jbe at pengutronix.de>
>> Date: Sat Sep 25 19:18:25 2010 +0200
>>
>> Fix default baudrate setting
>>
>> The menu entry to set the default baudrate (CONFIG_BAUDRATE) makes no sense,
>> as long as its content is not used. This patch makes barebox using the setting
>> again.
>>
>> Signed-off-by: Juergen Beisert <jbe at pengutronix.de>
>>
>> diff --git a/common/console.c b/common/console.c
>> index 204a08c..71fa88f 100644
>> --- a/common/console.c
>> +++ b/common/console.c
>> @@ -140,9 +140,12 @@ int console_register(struct console_device *newcdev)
>> dev->type_data = newcdev;
>> register_device(dev);
>>
>> +#define xstr(s) str(s)
>> +#define str(s) #s
> can we put those macros in a more generic place?
The kernel calls this stringify, see [1]
g'night,
Marc
[1] http://lxr.linux.no/linux+v2.6.35.5/include/linux/stringify.h
--
Pengutronix e.K. | Marc Kleine-Budde |
Industrial Linux Solutions | Phone: +49-231-2826-924 |
Vertretung West/Dortmund | Fax: +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <http://lists.infradead.org/pipermail/barebox/attachments/20100926/8e278daa/attachment.sig>
More information about the barebox
mailing list