Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Jul 2025 23:04:47 GMT
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 0849d876b1ac - main - cam/mmc: style(9) pass: put { starting functions on its own line
Message-ID:  <202507082304.568N4lii035553@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=0849d876b1ac414e55643e408464be63bc9b1a71

commit 0849d876b1ac414e55643e408464be63bc9b1a71
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2025-07-08 16:01:56 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2025-07-08 22:52:04 +0000

    cam/mmc: style(9) pass: put { starting functions on its own line
    
    Sponsored by:           Netflix
---
 sys/cam/mmc/mmc_da.c | 24 ++++++++++++++++--------
 1 file changed, 16 insertions(+), 8 deletions(-)

diff --git a/sys/cam/mmc/mmc_da.c b/sys/cam/mmc/mmc_da.c
index 3815561898bd..f7c478076144 100644
--- a/sys/cam/mmc/mmc_da.c
+++ b/sys/cam/mmc/mmc_da.c
@@ -789,7 +789,8 @@ sddaregister(struct cam_periph *periph, void *arg)
 
 static int
 mmc_exec_app_cmd(struct cam_periph *periph, union ccb *ccb,
-	struct mmc_command *cmd) {
+	struct mmc_command *cmd)
+{
 	int err;
 
 	/* Send APP_CMD first */
@@ -843,7 +844,8 @@ mmc_exec_app_cmd(struct cam_periph *periph, union ccb *ccb,
 }
 
 static int
-mmc_app_get_scr(struct cam_periph *periph, union ccb *ccb, uint32_t *rawscr) {
+mmc_app_get_scr(struct cam_periph *periph, union ccb *ccb, uint32_t *rawscr)
+{
 	int err;
 	struct mmc_command cmd;
 	struct mmc_data d;
@@ -869,7 +871,8 @@ mmc_app_get_scr(struct cam_periph *periph, union ccb *ccb, uint32_t *rawscr) {
 
 static int
 mmc_send_ext_csd(struct cam_periph *periph, union ccb *ccb,
-		 uint8_t *rawextcsd, size_t buf_len) {
+		 uint8_t *rawextcsd, size_t buf_len)
+{
 	int err;
 	struct mmc_data d;
 
@@ -966,14 +969,16 @@ mmc_switch(struct cam_periph *periph, union ccb *ccb,
 }
 
 static uint32_t
-mmc_get_spec_vers(struct cam_periph *periph) {
+mmc_get_spec_vers(struct cam_periph *periph)
+{
 	struct sdda_softc *softc = (struct sdda_softc *)periph->softc;
 
 	return (softc->csd.spec_vers);
 }
 
 static uint64_t
-mmc_get_media_size(struct cam_periph *periph) {
+mmc_get_media_size(struct cam_periph *periph)
+{
 	struct sdda_softc *softc = (struct sdda_softc *)periph->softc;
 
 	return (softc->mediasize);
@@ -992,7 +997,8 @@ mmc_get_cmd6_timeout(struct cam_periph *periph)
 static int
 mmc_sd_switch(struct cam_periph *periph, union ccb *ccb,
 	      uint8_t mode, uint8_t grp, uint8_t value,
-	      uint8_t *res) {
+	      uint8_t *res)
+{
 	struct mmc_data mmc_d;
 	uint32_t arg;
 	int err;
@@ -1069,7 +1075,8 @@ mmc_set_timing(struct cam_periph *periph,
 }
 
 static void
-sdda_start_init_task(void *context, int pending) {
+sdda_start_init_task(void *context, int pending)
+{
 	union ccb *new_ccb;
 	struct cam_periph *periph;
 
@@ -1088,7 +1095,8 @@ sdda_start_init_task(void *context, int pending) {
 }
 
 static void
-sdda_set_bus_width(struct cam_periph *periph, union ccb *ccb, int width) {
+sdda_set_bus_width(struct cam_periph *periph, union ccb *ccb, int width)
+{
 	struct sdda_softc *softc = (struct sdda_softc *)periph->softc;
 	struct mmc_params *mmcp = &periph->path->device->mmc_ident_data;
 	int err;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202507082304.568N4lii035553>