]> git.baikalelectronics.ru Git - kernel.git/commitdiff
AMD DISPLAY CORE: Use fallthrough;
authorJoe Perches <joe@perches.com>
Wed, 11 Mar 2020 04:51:38 +0000 (21:51 -0700)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 13 Mar 2020 15:52:34 +0000 (11:52 -0400)
Convert the various uses of fallthrough comments to fallthrough;

Done via script
Link: https://lore.kernel.org/lkml/b56602fcf79f849e733e7b521bb0e17895d390fa.1582230379.git.joe@perches.com/
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c
drivers/gpu/drm/amd/display/dc/dce/dce_aux.c
drivers/gpu/drm/amd/display/dc/dce/dce_mem_input.c

index 2f1c9584ac32d5c03cd999a50fdf69cc52dffc4b..37fa7b48250ef97a85205b28d6e4a8c4d7a045fa 100644 (file)
@@ -267,7 +267,7 @@ static struct atom_display_object_path_v2 *get_bios_object(
                                        && id.enum_id == obj_id.enum_id)
                                return &bp->object_info_tbl.v1_4->display_path[i];
                }
-               /* fall through */
+               fallthrough;
        case OBJECT_TYPE_CONNECTOR:
        case OBJECT_TYPE_GENERIC:
                /* Both Generic and Connector Object ID
@@ -280,7 +280,7 @@ static struct atom_display_object_path_v2 *get_bios_object(
                                        && id.enum_id == obj_id.enum_id)
                                return &bp->object_info_tbl.v1_4->display_path[i];
                }
-               /* fall through */
+               fallthrough;
        default:
                return NULL;
        }
index 68c4049cbc2adaedd986f91e8951b8ad491208f3..743042d5905a690bab22f106f32651891b19aafe 100644 (file)
@@ -645,7 +645,7 @@ bool dce_aux_transfer_with_retries(struct ddc_service *ddc,
                        case AUX_TRANSACTION_REPLY_AUX_DEFER:
                        case AUX_TRANSACTION_REPLY_I2C_OVER_AUX_DEFER:
                                retry_on_defer = true;
-                               /* fall through */
+                               fallthrough;
                        case AUX_TRANSACTION_REPLY_I2C_OVER_AUX_NACK:
                                if (++aux_defer_retries >= AUX_MAX_DEFER_RETRIES) {
                                        goto fail;
index 8aa937f496c4ffb5e81b222b98c9ce97793eda02..51481e922eb9ca2a143b8f582ea8453dd92780f5 100644 (file)
@@ -479,7 +479,7 @@ static void program_grph_pixel_format(
        case SURFACE_PIXEL_FORMAT_GRPH_ABGR16161616F:
                sign = 1;
                floating = 1;
-               /* fall through */
+               fallthrough;
        case SURFACE_PIXEL_FORMAT_GRPH_ARGB16161616F: /* shouldn't this get float too? */
        case SURFACE_PIXEL_FORMAT_GRPH_ARGB16161616:
                grph_depth = 3;