![Amitoj Kaur Chawla](/assets/img/avatar_default.png)
Problem found using checkpatch.pl WARNING: Use #include <linux/io.h> instead of <asm/io.h> WARNING: Use #include <linux/uaccess.h> instead of <asm/uaccess.h> Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
23 lines
484 B
C
23 lines
484 B
C
#ifndef DDK750_HELP_H__
|
|
#define DDK750_HELP_H__
|
|
#include "ddk750_chip.h"
|
|
#ifndef USE_INTERNAL_REGISTER_ACCESS
|
|
|
|
#include <linux/ioport.h>
|
|
#include <linux/io.h>
|
|
#include <linux/uaccess.h>
|
|
#include "sm750_help.h"
|
|
|
|
/* software control endianness */
|
|
#define PEEK32(addr) readl(addr + mmio750)
|
|
#define POKE32(addr, data) writel(data, addr + mmio750)
|
|
|
|
extern void __iomem *mmio750;
|
|
extern char revId750;
|
|
extern unsigned short devId750;
|
|
#else
|
|
/* implement if you want use it*/
|
|
#endif
|
|
|
|
#endif
|