/* * Copyright (C) 2015 Tobias Klauser * * This file is part of llmnrd. * * llmnrd is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, version 2 of the License. * * llmnrd is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with llmnrd. If not, see . */ #ifndef COMPILER_H #define COMPILER_H #ifdef __GNUC__ # define __noreturn __attribute__((noreturn)) # define __warn_unused_result __attribute__((warn_unused_result)) # ifndef __packed # define __packed __attribute__((packed)) # endif # ifndef __unused # define __unused __attribute__((unused)) # endif # ifndef offsetof # define offsetof(a, b) __builtin_offsetof(a, b) # endif #else # define __noreturn # define __packed # define __unused #endif #ifndef offsetof # define offsetof(type, member) ((size_t) &((type *)0)->member) #endif #ifndef container_of # define container_of(ptr, type, member) ({ \ const typeof(((type *)0)->member) *__mptr = (ptr); \ (type *)((char *)__mptr - offsetof(type, member));}) #endif #endif /* COMPILER_H */ ght'>Tobias Klauser
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Müller <serveralex@gmail.com>2016-05-08 19:59:49 +0200
committerLinus Walleij <linus.walleij@linaro.org>2016-05-11 14:18:10 +0200
commitd6d5c125350dae960a22b45a4ffad46c4abb3ecc (patch)
treeaa08fabf33491dd1310eec52a2de079e31f67b54
parent1d18a3f0f0809f6c71f1f6e9e268ee904ce0b588 (diff)
pinctrl: meson: Fix eth_tx_en bit index
Fix pinctrl eth_tx_en bit index according to Hardkernel ODROID-C1 datasheet. Signed-off-by: Alexander Müller <serveralex@gmail.com> Acked-by: Carlo Caione <carlo@endlessm.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>