/*
 * Copyright (C) 2013 Samsung Electronics Co., Ltd.
 *
 * 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.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
#ifndef __CLOCKSOURCE_SAMSUNG_PWM_H
#define __CLOCKSOURCE_SAMSUNG_PWM_H

#include <linux/spinlock.h>

#define SAMSUNG_PWM_NUM		5

/*
 * Following declaration must be in an ifdef due to this symbol being static
 * in pwm-samsung driver if the clocksource driver is not compiled in and the
 * spinlock is not shared between both drivers.
 */
#ifdef CONFIG_CLKSRC_SAMSUNG_PWM
extern spinlock_t samsung_pwm_lock;
#endif

struct samsung_pwm_variant {
	u8 bits;
	u8 div_base;
	u8 tclk_mask;
	u8 output_mask;
	bool has_tint_cstat;
};

void samsung_pwm_clocksource_init(void __iomem *base,
		unsigned int *irqs, struct samsung_pwm_variant *variant);

#endif /* __CLOCKSOURCE_SAMSUNG_PWM_H */
ack</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/'>summary</a><a href='/cgit.cgi/linux/net-next.git/refs/?id=dd8427a78ffccbacf166a2d5d5eae55b586e1afe'>refs</a><a class='active' href='/cgit.cgi/linux/net-next.git/log/sound/usb/caiaq/midi.c?showmsg=1'>log</a><a href='/cgit.cgi/linux/net-next.git/tree/sound/usb/caiaq/midi.c?id=dd8427a78ffccbacf166a2d5d5eae55b586e1afe'>tree</a><a href='/cgit.cgi/linux/net-next.git/commit/sound/usb/caiaq/midi.c?id=dd8427a78ffccbacf166a2d5d5eae55b586e1afe'>commit</a><a href='/cgit.cgi/linux/net-next.git/diff/sound/usb/caiaq/midi.c?id=dd8427a78ffccbacf166a2d5d5eae55b586e1afe'>diff</a></td><td class='form'><form class='right' method='get' action='/cgit.cgi/linux/net-next.git/log/sound/usb/caiaq/midi.c'>
<input type='hidden' name='id' value='dd8427a78ffccbacf166a2d5d5eae55b586e1afe'/><input type='hidden' name='showmsg' value='1'/><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/?id=dd8427a78ffccbacf166a2d5d5eae55b586e1afe&amp;showmsg=1'>root</a>/<a href='/cgit.cgi/linux/net-next.git/log/sound?id=dd8427a78ffccbacf166a2d5d5eae55b586e1afe&amp;showmsg=1'>sound</a>/<a href='/cgit.cgi/linux/net-next.git/log/sound/usb?id=dd8427a78ffccbacf166a2d5d5eae55b586e1afe&amp;showmsg=1'>usb</a>/<a href='/cgit.cgi/linux/net-next.git/log/sound/usb/caiaq?id=dd8427a78ffccbacf166a2d5d5eae55b586e1afe&amp;showmsg=1'>caiaq</a>/<a href='/cgit.cgi/linux/net-next.git/log/sound/usb/caiaq/midi.c?id=dd8427a78ffccbacf166a2d5d5eae55b586e1afe&amp;showmsg=1'>midi.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/usb/caiaq/midi.c?id=dd8427a78ffccbacf166a2d5d5eae55b586e1afe'>Collapse</a>)</th><th class='left'>Author</th><th class='left'>Files</th><th class='left'>Lines</th></tr>