/*
 * u_eem.h
 *
 * Utility definitions for the eem function
 *
 * Copyright (c) 2013 Samsung Electronics Co., Ltd.
 *		http://www.samsung.com
 *
 * Author: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
 *
 * 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 U_EEM_H
#define U_EEM_H

#include <linux/usb/composite.h>

struct f_eem_opts {
	struct usb_function_instance	func_inst;
	struct net_device		*net;
	bool				bound;

	/*
	 * Read/write access to configfs attributes is handled by configfs.
	 *
	 * This is to protect the data from concurrent access by read/write
	 * and create symlink/remove symlink.
	 */
	struct mutex			lock;
	int				refcnt;
};

#endif /* U_EEM_H */
gi/linux/net-next.git/'>net-next.git</a></td><td class='form'><form method='get'>
<input type='hidden' name='id' value='c3afa9955382ea5496e8997b307690aaca6e6e2f'/><select name='h' onchange='this.form.submit();'>
<option value='emaclite-cleanup'>emaclite-cleanup</option>
<option value='master'>master</option>
<option value='nds-private-remove' selected='selected'>nds-private-remove</option>
<option value='packet-loop-back'>packet-loop-back</option>
<option value='packet-rx-pump-back'>packet-rx-pump-back</option>
</select> <input type='submit' value='switch'/></form></td></tr>
<tr><td class='sub'>net-next plumbings</td><td class='sub right'>Tobias Klauser</td></tr></table>
<table class='tabs'><tr><td>
<a href='/cgit.cgi/linux/net-next.git/?h=nds-private-remove'>summary</a><a href='/cgit.cgi/linux/net-next.git/refs/?h=nds-private-remove&amp;id=c3afa9955382ea5496e8997b307690aaca6e6e2f'>refs</a><a class='active' href='/cgit.cgi/linux/net-next.git/log/sound/soc/codecs/adau1977-i2c.c?h=nds-private-remove'>log</a><a href='/cgit.cgi/linux/net-next.git/tree/sound/soc/codecs/adau1977-i2c.c?h=nds-private-remove&amp;id=c3afa9955382ea5496e8997b307690aaca6e6e2f'>tree</a><a href='/cgit.cgi/linux/net-next.git/commit/sound/soc/codecs/adau1977-i2c.c?h=nds-private-remove&amp;id=c3afa9955382ea5496e8997b307690aaca6e6e2f'>commit</a><a href='/cgit.cgi/linux/net-next.git/diff/sound/soc/codecs/adau1977-i2c.c?h=nds-private-remove&amp;id=c3afa9955382ea5496e8997b307690aaca6e6e2f'>diff</a></td><td class='form'><form class='right' method='get' action='/cgit.cgi/linux/net-next.git/log/sound/soc/codecs/adau1977-i2c.c'>
<input type='hidden' name='h' value='nds-private-remove'/><input type='hidden' name='id' value='c3afa9955382ea5496e8997b307690aaca6e6e2f'/><select name='qt'>
<option value='grep'>log msg</option>
<option value='author'>author</option>
<option value='committer'>committer</option>
<option value='range'>range</option>
</select>
<input class='txt' type='search' size='10' name='q' value=''/>
<input type='submit' value='search'/>
</form>
</td></tr></table>
<div class='path'>path: <a href='/cgit.cgi/linux/net-next.git/log/?h=nds-private-remove&amp;id=c3afa9955382ea5496e8997b307690aaca6e6e2f'>root</a>/<a href='/cgit.cgi/linux/net-next.git/log/sound?h=nds-private-remove&amp;id=c3afa9955382ea5496e8997b307690aaca6e6e2f'>sound</a>/<a href='/cgit.cgi/linux/net-next.git/log/sound/soc?h=nds-private-remove&amp;id=c3afa9955382ea5496e8997b307690aaca6e6e2f'>soc</a>/<a href='/cgit.cgi/linux/net-next.git/log/sound/soc/codecs?h=nds-private-remove&amp;id=c3afa9955382ea5496e8997b307690aaca6e6e2f'>codecs</a>/<a href='/cgit.cgi/linux/net-next.git/log/sound/soc/codecs/adau1977-i2c.c?h=nds-private-remove&amp;id=c3afa9955382ea5496e8997b307690aaca6e6e2f'>adau1977-i2c.c</a></div><div class='content'><table class='list nowrap'><tr class='nohover'><th class='left'>Age</th><th class='left'>Commit message (<a href='/cgit.cgi/linux/net-next.git/log/sound/soc/codecs/adau1977-i2c.c?h=nds-private-remove&amp;id=c3afa9955382ea5496e8997b307690aaca6e6e2f&amp;showmsg=1'>Expand</a>)</th><th class='left'>Author</th><th class='left'>Files</th><th class='left'>Lines</th></tr>