mirror of
https://github.com/patjak/facetimehd.git
synced 2026-04-09 11:02:31 +02:00
facetimehd: Use the max macro from linux/kernel.h
This commit is contained in:
@@ -35,8 +35,6 @@
|
||||
#define FTHD_PCI_S2_MEM 2
|
||||
#define FTHD_PCI_ISP_IO 4
|
||||
|
||||
#define MAX(a, b) ((a)>(b)?(a):(b))
|
||||
|
||||
#define FTHD_BUFFERS 4
|
||||
|
||||
struct fthd_reg {
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/delay.h>
|
||||
#include <linux/acpi.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));
|
||||
|
||||
if (response_len) {
|
||||
len = MAX(request_len, *response_len);
|
||||
len = max(request_len, *response_len);
|
||||
} else {
|
||||
len = request_len;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user