Re: [PATCH v3] input: MXC: add mxc-keypad driver to support the Keypad Port present in the mxc application processors family.
From: Lothar Waßmann <hidden>
Date: 2010-01-27 12:18:00
Also in:
linux-arm-kernel
From: Lothar Waßmann <hidden>
Date: 2010-01-27 12:18:00
Also in:
linux-arm-kernel
Hi, Alberto Panizzo writes:
quoted
quoted
+ irq = platform_get_irq(pdev, 0); + if (irq < 0) { + dev_err(&pdev->dev, "failed to get keypad irq\n"); + return -ENXIO; + }This should be -ENODEV.Lot of reference keyboard driver use -ENXIO.. May should be better: return irq ?
Yes, of course. If a function returns an error code that should be promoted to the caller instead of inventing a new error code. Lothar Waßmann -- ___________________________________________________________ Ka-Ro electronics GmbH | Pascalstraße 22 | D - 52076 Aachen Phone: +49 2408 1402-0 | Fax: +49 2408 1402-10 Geschäftsführer: Matthias Kaussen Handelsregistereintrag: Amtsgericht Aachen, HRB 4996 www.karo-electronics.de | info@karo-electronics.de ___________________________________________________________ -- To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html