toshset (1.76-4) 05_toshsat1800-irdasetup_types.patch

Summary

 toshsat1800-irdasetup-0.2/toshsat1800-irdasetup.c |   16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

    
download this patch

Patch contents

Author: Matej Vela <vela@debian.org>
Description: pciutils 2.2.0 and later no longer exports `byte'; use `u8' instead
(backwards-compatible).
--- trunk.orig/toshsat1800-irdasetup-0.2/toshsat1800-irdasetup.c
+++ trunk/toshsat1800-irdasetup-0.2/toshsat1800-irdasetup.c
@@ -70,8 +70,8 @@
 struct port_decoding_access_info
 {
 	int		port;
-	byte	reg;
-	byte	or_mask;
+	u8	reg;
+	u8	or_mask;
 };
 
 struct port_decoding_access_info ali1533_ports[]=
@@ -118,7 +118,7 @@
 struct smc_chip_model
 {
 	char *name;
-	byte  version_id;
+	u8  version_id;
 	int  (*config_function)(int revision, int cfgbase, int sirbase, int firbase, int dma, int irq);
 };
 
@@ -277,7 +277,7 @@
 print_ali1533_port_status(struct pci_dev *dev)
 {
 	struct port_decoding_access_info *p;
-	byte onebyte;
+	u8 onebyte;
 	int i;
 
 	DEBUG("printing port status");
@@ -304,7 +304,7 @@
 set_ali1533_port(struct pci_dev *dev, int port, int decode)
 {
 	struct port_decoding_access_info info;
-	byte previousval, onebyte, and_mask;
+	u8 previousval, onebyte, and_mask;
 	int retval;
 
 	DEBUG_VAL("looking for port", port);
@@ -366,7 +366,7 @@
 	struct pci_filter filter;
 	int  ports[2], port_previous_mode, i;
 	char *val;
-	byte byte;
+	u8 byte;
 
 	access = pci_alloc();
 	if(access==NULL)
@@ -454,7 +454,7 @@
 static int
 configure_47N227_smc_ircc(int revision, int cfgbase, int sirbase, int firbase, int dma, int irq)
 {
-	byte onebyte;
+	u8 onebyte;
 	int retval;
 
 	DEBUG_VAL("trying to init SMC with cfgbase", cfgbase);
@@ -560,7 +560,7 @@
 static int
 configure_smc_ircc(int cfgbase, int sirbase, int firbase, int dma, int irq)
 {
-	byte version_id, revision_id, onebyte;
+	u8 version_id, revision_id, onebyte;
 	struct smc_chip_model *chip_model;
 	void *config_function;
 	int retval;