https://github.com/torvalds/linux
Revision 648f15345add88a7eea724365fe1217a8d8a1e16 authored by Thomas Gleixner on 17 November 2009, 22:50:45 UTC, committed by Paul Mundt on 18 November 2009, 01:50:22 UTC
The typename member of struct irq_chip was kept for migration purposes
and is obsolete since more than 2 years. Fix up the leftovers.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-sh@vger.kernel.org
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
1 parent 68fb2e4
Raw File
Tip revision: 648f15345add88a7eea724365fe1217a8d8a1e16 authored by Thomas Gleixner on 17 November 2009, 22:50:45 UTC
sh: Fixup last users of irq_chip->typename
Tip revision: 648f153
bin2c.c
/*
 * Unloved program to convert a binary on stdin to a C include on stdout
 *
 * Jan 1999 Matt Mackall <mpm@selenic.com>
 *
 * This software may be used and distributed according to the terms
 * of the GNU General Public License, incorporated herein by reference.
 */

#include <stdio.h>

int main(int argc, char *argv[])
{
	int ch, total=0;

	if (argc > 1)
		printf("const char %s[] %s=\n",
			argv[1], argc > 2 ? argv[2] : "");

	do {
		printf("\t\"");
		while ((ch = getchar()) != EOF)
		{
			total++;
			printf("\\x%02x",ch);
			if (total % 16 == 0)
				break;
		}
		printf("\"\n");
	} while (ch != EOF);

	if (argc > 1)
		printf("\t;\n\nconst int %s_size = %d;\n", argv[1], total);

	return 0;
}
back to top