facetimehd: Use the max macro from linux/kernel.h

This commit is contained in:
Patrik Jakobsson
2015-11-28 13:33:47 +01:00
parent ed773c8268
commit 4ffc88f155
2 changed files with 2 additions and 3 deletions

View File

@@ -35,8 +35,6 @@
#define FTHD_PCI_S2_MEM 2 #define FTHD_PCI_S2_MEM 2
#define FTHD_PCI_ISP_IO 4 #define FTHD_PCI_ISP_IO 4
#define MAX(a, b) ((a)>(b)?(a):(b))
#define FTHD_BUFFERS 4 #define FTHD_BUFFERS 4
struct fthd_reg { struct fthd_reg {

View File

@@ -17,6 +17,7 @@
* *
*/ */
#include <linux/kernel.h>
#include <linux/delay.h> #include <linux/delay.h>
#include <linux/acpi.h> #include <linux/acpi.h>
#include <linux/firmware.h> #include <linux/firmware.h>
@@ -276,7 +277,7 @@ static int fthd_isp_cmd(struct fthd_private *dev_priv, enum fthd_isp_cmds comman
memset(&cmd, 0, sizeof(cmd)); memset(&cmd, 0, sizeof(cmd));
if (response_len) { if (response_len) {
len = MAX(request_len, *response_len); len = max(request_len, *response_len);
} else { } else {
len = request_len; len = request_len;
} }