Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/sane-backends: remove unneeded first patch
@ 2019-04-16 17:22 Fabrice Fontaine
  2019-04-17 19:07 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: Fabrice Fontaine @ 2019-04-16 17:22 UTC (permalink / raw)
  To: buildroot

This patch is not needed since version 1.0.25 and
https://gitlab.com/sane-project/backends/commit/8434ea91623f313eeb68ac301f7c7abf65976fc8

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 package/sane-backends/0001-qcam-x86.patch     | 61 -------------------
 ...1-sane_backend-add-missing-config.h.patch} |  0
 2 files changed, 61 deletions(-)
 delete mode 100644 package/sane-backends/0001-qcam-x86.patch
 rename package/sane-backends/{0002-sane_backend-add-missing-config.h.patch => 0001-sane_backend-add-missing-config.h.patch} (100%)

diff --git a/package/sane-backends/0001-qcam-x86.patch b/package/sane-backends/0001-qcam-x86.patch
deleted file mode 100644
index f14dd0e980..0000000000
--- a/package/sane-backends/0001-qcam-x86.patch
+++ /dev/null
@@ -1,61 +0,0 @@
-[PATCH] backend/qcam.c: fix build on !x86
-
-inb/outb/ioperm are x86 specific interfaces, so replace with noops on
-!x86.
-
-Inspired by similar patch in openwrt:
-https://dev.openwrt.org/ticket/5689
-
-Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
----
- backend/qcam.c |   14 +++++++++++++-
- 1 file changed, 13 insertions(+), 1 deletion(-)
-
-Index: sane-backends-1.0.22/backend/qcam.c
-===================================================================
---- sane-backends-1.0.22.orig/backend/qcam.c
-+++ sane-backends-1.0.22/backend/qcam.c
-@@ -205,12 +205,20 @@
- 
- #endif /* <sys/io.h> || <asm/io.h> || <sys/hw.h> */
- 
-+/* inb / outb only exist on x86 */
-+#if defined(__i386__) || defined(__x86_64__)
- #define read_lpdata(d)		inb ((d)->port)
- #define read_lpstatus(d)	inb ((d)->port + 1)
- #define read_lpcontrol(d)	inb ((d)->port + 2)
- #define write_lpdata(d,v)	outb ((v), (d)->port)
- #define write_lpcontrol(d,v)	outb ((v), (d)->port + 2)
--
-+#else
-+#define read_lpdata(d)		0
-+#define read_lpstatus(d)	0
-+#define read_lpcontrol(d)	0
-+#define write_lpdata(d,v)
-+#define write_lpcontrol(d,v)
-+#endif
- 
- static SANE_Status
- enable_ports (QC_Device * q)
-@@ -219,8 +227,10 @@
-   if (q->port < 0x278 || q->port > 0x3bc)
-     return SANE_STATUS_INVAL;
- 
-+#if defined(__i386__) || defined(__x86_64__)
-   if (ioperm (q->port, 3, 1) < 0)
-     return SANE_STATUS_INVAL;
-+#endif
- 
-   return SANE_STATUS_GOOD;
- }
-@@ -228,8 +238,10 @@
- static SANE_Status
- disable_ports (QC_Device * q)
- {
-+#if defined(__i386__) || defined(__x86_64__)
-   if (ioperm (q->port, 3, 0) < 0)
-     return SANE_STATUS_INVAL;
-+#endif
- 
-   return SANE_STATUS_GOOD;
- }
diff --git a/package/sane-backends/0002-sane_backend-add-missing-config.h.patch b/package/sane-backends/0001-sane_backend-add-missing-config.h.patch
similarity index 100%
rename from package/sane-backends/0002-sane_backend-add-missing-config.h.patch
rename to package/sane-backends/0001-sane_backend-add-missing-config.h.patch
-- 
2.20.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [Buildroot] [PATCH 1/1] package/sane-backends: remove unneeded first patch
  2019-04-16 17:22 [Buildroot] [PATCH 1/1] package/sane-backends: remove unneeded first patch Fabrice Fontaine
@ 2019-04-17 19:07 ` Thomas Petazzoni
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2019-04-17 19:07 UTC (permalink / raw)
  To: buildroot

On Tue, 16 Apr 2019 19:22:45 +0200
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:

> This patch is not needed since version 1.0.25 and
> https://gitlab.com/sane-project/backends/commit/8434ea91623f313eeb68ac301f7c7abf65976fc8
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
>  package/sane-backends/0001-qcam-x86.patch     | 61 -------------------
>  ...1-sane_backend-add-missing-config.h.patch} |  0
>  2 files changed, 61 deletions(-)
>  delete mode 100644 package/sane-backends/0001-qcam-x86.patch
>  rename package/sane-backends/{0002-sane_backend-add-missing-config.h.patch => 0001-sane_backend-add-missing-config.h.patch} (100%)

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-04-17 19:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-04-16 17:22 [Buildroot] [PATCH 1/1] package/sane-backends: remove unneeded first patch Fabrice Fontaine
2019-04-17 19:07 ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox