https://github.com/torvalds/linux
Revision 7ad222b3aed350adfc27ee7eec4587ffe55dfdce authored by Mauro Ciancio on 14 January 2019, 13:24:53 UTC, committed by Dmitry Torokhov on 17 February 2019, 06:49:46 UTC
This adds ELAN0617 to the ACPI table to support Elan touchpad found in
Lenovo V330-15ISK.

Signed-off-by: Mauro Ciancio <mauro@acadeu.com>
Cc: stable@vger.kernel.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
1 parent 2439d37
Raw File
Tip revision: 7ad222b3aed350adfc27ee7eec4587ffe55dfdce authored by Mauro Ciancio on 14 January 2019, 13:24:53 UTC
Input: elan_i2c - add ACPI ID for touchpad in Lenovo V330-15ISK
Tip revision: 7ad222b
bcd.c
// SPDX-License-Identifier: GPL-2.0
#include <linux/bcd.h>
#include <linux/export.h>

unsigned _bcd2bin(unsigned char val)
{
	return (val & 0x0f) + (val >> 4) * 10;
}
EXPORT_SYMBOL(_bcd2bin);

unsigned char _bin2bcd(unsigned val)
{
	return ((val / 10) << 4) + val % 10;
}
EXPORT_SYMBOL(_bin2bcd);
back to top