mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-06 05:02:31 +00:00
8d084b2eae
Fix: drivers/usb/typec/tcpm/tcpm.c: In function ‘run_state_machine’: drivers/usb/typec/tcpm/tcpm.c:4724:3: error: case label does not reduce to an integer constant case BDO_MODE_TESTDATA: ^~~~ See https://lore.kernel.org/r/YkwQ6%2BtIH8GQpuct@zn.tnic for the gory details as to why it triggers with older gccs only. Signed-off-by: Borislav Petkov <bp@suse.de> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: linux-usb@vger.kernel.org Link: https://lore.kernel.org/r/20220405151517.29753-8-bp@alien8.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
23 lines
556 B
C
23 lines
556 B
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
/*
|
|
* Copyright 2015-2017 Google, Inc
|
|
*/
|
|
|
|
#ifndef __LINUX_USB_PD_BDO_H
|
|
#define __LINUX_USB_PD_BDO_H
|
|
|
|
/* BDO : BIST Data Object */
|
|
#define BDO_MODE_RECV (0 << 28)
|
|
#define BDO_MODE_TRANSMIT (1 << 28)
|
|
#define BDO_MODE_COUNTERS (2 << 28)
|
|
#define BDO_MODE_CARRIER0 (3 << 28)
|
|
#define BDO_MODE_CARRIER1 (4 << 28)
|
|
#define BDO_MODE_CARRIER2 (5 << 28)
|
|
#define BDO_MODE_CARRIER3 (6 << 28)
|
|
#define BDO_MODE_EYE (7 << 28)
|
|
#define BDO_MODE_TESTDATA (8U << 28)
|
|
|
|
#define BDO_MODE_MASK(mode) ((mode) & 0xf0000000)
|
|
|
|
#endif
|