Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

media: i2c: max9271: Add header include guards to max9271.h

Protect against multiple inclusions of the max9271.h header with include
guards.

Link: https://lore.kernel.org/linux-media/20220102224803.27463-1-laurent.pinchart+renesas@ideasonboard.com
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Reviewed-by: Jacopo Mondi <jacopo+renesas@jmondi.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>

authored by

Laurent Pinchart and committed by
Mauro Carvalho Chehab
bebfa341 6f76b626

+5
+5
drivers/media/i2c/max9271.h
··· 8 8 * Copyright (C) 2015 Cogent Embedded, Inc. 9 9 */ 10 10 11 + #ifndef __MEDIA_I2C_MAX9271_H__ 12 + #define __MEDIA_I2C_MAX9271_H__ 13 + 11 14 #include <linux/i2c.h> 12 15 13 16 #define MAX9271_DEFAULT_ADDR 0x40 ··· 234 231 * Return 0 on success or a negative error code on failure 235 232 */ 236 233 int max9271_set_translation(struct max9271_device *dev, u8 source, u8 dest); 234 + 235 + #endif /* __MEDIA_I2C_MAX9271_H__ */