summaryrefslogtreecommitdiff
path: root/arch/arm/mach-imx/devices/platform-gpio_keys.c
blob: 488678403ac81159b3620eee9269c65185772549 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * Copyright (C) 2010 Freescale Semiconductor, Inc. All Rights Reserved.
 */
#include <linux/sizes.h>

#include "../hardware.h"
#include "devices-common.h"

struct platform_device *__init imx_add_gpio_keys(
		const struct gpio_keys_platform_data *pdata)
{
	return imx_add_platform_device("gpio-keys", -1, NULL,
		 0, pdata, sizeof(*pdata));
}