162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0+ */ 262306a36Sopenharmony_ci/* 362306a36Sopenharmony_ci * Samsung Platform - Keypad platform data definitions 462306a36Sopenharmony_ci * 562306a36Sopenharmony_ci * Copyright (C) 2010 Samsung Electronics Co.Ltd 662306a36Sopenharmony_ci * Author: Joonyoung Shim <jy0922.shim@samsung.com> 762306a36Sopenharmony_ci */ 862306a36Sopenharmony_ci 962306a36Sopenharmony_ci#ifndef __PLAT_SAMSUNG_KEYPAD_H 1062306a36Sopenharmony_ci#define __PLAT_SAMSUNG_KEYPAD_H 1162306a36Sopenharmony_ci 1262306a36Sopenharmony_ci#include <linux/input/samsung-keypad.h> 1362306a36Sopenharmony_ci 1462306a36Sopenharmony_ci/** 1562306a36Sopenharmony_ci * samsung_keypad_set_platdata - Set platform data for Samsung Keypad device. 1662306a36Sopenharmony_ci * @pd: Platform data to register to device. 1762306a36Sopenharmony_ci * 1862306a36Sopenharmony_ci * Register the given platform data for use with Samsung Keypad device. 1962306a36Sopenharmony_ci * The call will copy the platform data, so the board definitions can 2062306a36Sopenharmony_ci * make the structure itself __initdata. 2162306a36Sopenharmony_ci */ 2262306a36Sopenharmony_ciextern void samsung_keypad_set_platdata(struct samsung_keypad_platdata *pd); 2362306a36Sopenharmony_ci 2462306a36Sopenharmony_ci/* defined by architecture to configure gpio. */ 2562306a36Sopenharmony_ciextern void samsung_keypad_cfg_gpio(unsigned int rows, unsigned int cols); 2662306a36Sopenharmony_ci 2762306a36Sopenharmony_ci#endif /* __PLAT_SAMSUNG_KEYPAD_H */ 28