/* * AK4641 ALSA SoC Codec driver * * Copyright 2009 Philipp Zabel * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ #ifndef __AK4641_H #define __AK4641_H /** * struct ak4641_platform_data - platform specific AK4641 configuration * @gpio_power: GPIO to control external power to AK4641 * @gpio_npdn: GPIO connected to AK4641 nPDN pin * * Both GPIO parameters are optional. */ struct ak4641_platform_data { int gpio_power; int gpio_npdn; }; #endif /* __AK4641_H */ le id='header'> cgit logo index : net-next.git
net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSudeep Holla <sudeep.holla@arm.com>2016-11-29 14:37:04 +0000
committerJassi Brar <jaswinder.singh@linaro.org>2016-12-19 20:10:23 +0530
commitbaef9a35d24626ebdc5a9074455e63eea6c7f6af (patch)
tree76e12c0aa8aa623afdee0cc74d78c4696489edb5
parentcf17581340d730175f1f3f4ce6e90ae434154e37 (diff)
mailbox: mailbox-test: add support for fasync/poll
Currently the read operation on the message debug file returns error if there's no data ready to be read. It expects the userspace to retry if it fails. Since the mailbox response could be asynchronous, it would be good to add support to block the read until the data is available. We can also implement poll file operations so that the userspace can wait to become ready to perform any I/O. This patch implements the poll and fasync file operation callback for the test mailbox device. Cc: Lee Jones <lee.jones@linaro.org> Signed-off-by: Sudeep Holla <sudeep.holla@arm.com> Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
Diffstat
-rw-r--r--drivers/mailbox/mailbox-test.c79
1 files changed, 71 insertions, 8 deletions
diff --git a/drivers/mailbox/mailbox-test.c b/drivers/mailbox/mailbox-test.c